Module: Shikimori::API::V1::People
- Included in:
- Shikimori::API::V1
- Defined in:
- lib/shikimori/api/v1/people.rb
Overview
Methods for the People API
Instance Method Summary collapse
-
#people(headers: nil, **query) ⇒ Array<Hash>
Get list of People.
-
#person(id, headers: nil, **query) ⇒ Hash
Get an person by id.
Instance Method Details
#people(headers: nil, **query) ⇒ Array<Hash>
Get list of People
27 28 29 |
# File 'lib/shikimori/api/v1/people.rb', line 27 def people(headers: nil, **query) rest.get base_url.join('people', 'search').url, headers: headers, query: query end |
#person(id, headers: nil, **query) ⇒ Hash
Get an person by id
47 48 49 |
# File 'lib/shikimori/api/v1/people.rb', line 47 def person(id, headers: nil, **query) rest.get base_url.join('people', id.to_s).url, headers: headers, query: query end |