Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
v0.4.0 (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Claven authored Oct 17, 2022
1 parent 93c00b7 commit b2da8d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [0.4.0] - 2022-02-15

- Use the latest API version, `v1`
- Add airlines' logo URL

## [0.3.0] - 2022-02-15

- Automatically retry rate-limited requests (thanks to @ferrisoxide for the contribution!)
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ A Ruby client library for the [Duffel API](https://duffel.com/docs/api).
In most cases, you'll want to add `duffel_api` to your project as a dependency by listing it in your `Gemfile`, and then running `bundle`:

```ruby
gem "duffel_api", "~> 0.3.0"
gem "duffel_api", "~> 0.4.0"
```

You can install `duffel_api` outside of the context of a project by running `gem install duffel_api` - for example if you want to play with the client library in `irb`.
Expand Down Expand Up @@ -118,7 +118,7 @@ client.offers.

A call to `#all` returns a Ruby [`Enumerator`](https://ruby-doc.org/core-2.6/Enumerator.html), which behaves a lot like an array - you can get the number of records with `#length`, loop through it with `#each`, etc.

If you prefer, you can also page through records manually using a service's `#list` method (e.g. `client.orders.list`) which returns a `DuffelAPI::ListResponse`.
If you prefer, you can also page through records manually using a service's `#list` method (e.g. `client.orders.list`) which returns a `DuffelAPI::ListResponse`.

The records in the page are returned by `#records` (`client.orders.list.records`) and the cursor for the next page (if there is one) can be found with `#after` (`client.orders.list.after`)

Expand Down Expand Up @@ -242,4 +242,3 @@ end

You can find complete documentation on this library's classes and methods in the in-code
documentation on [RubyDoc.info](https://rubydoc.info/github/duffelhq/duffel-api-ruby).

2 changes: 1 addition & 1 deletion lib/duffel_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module DuffelAPI
VERSION = "0.3.0"
VERSION = "0.4.0"
end

0 comments on commit b2da8d5

Please sign in to comment.