Skip to content

Commit

Permalink
Mention dependency on MultiJson gem in example
Browse files Browse the repository at this point in the history
Closes #108
  • Loading branch information
balvig committed Aug 19, 2019
1 parent f9ce3e9 commit bbc7810
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Add this line to your application's Gemfile:

```ruby
gem 'spyke'
gem 'multi_json' # or whatever is needed to parse responses
```

Spyke uses Faraday to handle requests and expects it to parse the response body into a hash in the following format:
Expand Down Expand Up @@ -159,7 +160,7 @@ Custom primary keys can be defined with `self.primary_key = :custom_key`:
```ruby
class User < Spyke::Base
self.primary_key = :user_id

# When using custom URIs the :id parameter also has to be adjusted
uri 'people(/:user_id)'
end
Expand Down

0 comments on commit bbc7810

Please sign in to comment.