Module: Shikimori::API::V1::Animes
- Included in:
- Shikimori::API::V1
- Defined in:
- lib/shikimori/api/v1/animes.rb
Overview
Methods for the Animes API
Instance Method Summary collapse
-
#anime(id, headers: nil, **query) ⇒ Hash
Get an anime by id.
-
#anime_external_links(id, headers: nil, **query) ⇒ Array<Hash>
Get an anime external links.
-
#anime_franchise(id, headers: nil, **query) ⇒ Hash
Get an anime franchise.
-
#anime_related(id, headers: nil, **query) ⇒ Array<Hash>
Get an related animes.
-
#anime_roles(id, headers: nil, **query) ⇒ Hash
Get an anime roles.
-
#anime_screenshots(id, headers: nil, **query) ⇒ Array<Hash>
Get an anime screenshots.
-
#anime_similar(id, headers: nil, **query) ⇒ Array<Hash>
Get an anime similar.
-
#anime_topics(id, headers: nil, **query) ⇒ Array<Hash>
Get an anime topics.
-
#animes(headers: nil, **query) ⇒ Array<Hash>
Get list of anime titles.
Instance Method Details
#anime(id, headers: nil, **query) ⇒ Hash
Get an anime by id
87 88 89 |
# File 'lib/shikimori/api/v1/animes.rb', line 87 def anime(id, headers: nil, **query) rest.get base_url.join('animes', id.to_s).url, headers: headers, query: query end |
#anime_external_links(id, headers: nil, **query) ⇒ Array<Hash>
Get an anime external links
220 221 222 |
# File 'lib/shikimori/api/v1/animes.rb', line 220 def anime_external_links(id, headers: nil, **query) rest.get base_url.join('animes', id.to_s, 'external_links').url, headers: headers, query: query end |
#anime_franchise(id, headers: nil, **query) ⇒ Hash
Get an anime franchise
198 199 200 |
# File 'lib/shikimori/api/v1/animes.rb', line 198 def anime_franchise(id, headers: nil, **query) rest.get base_url.join('animes', id.to_s, 'franchise').url, headers: headers, query: query end |
#anime_related(id, headers: nil, **query) ⇒ Array<Hash>
Get an related animes
154 155 156 |
# File 'lib/shikimori/api/v1/animes.rb', line 154 def (id, headers: nil, **query) rest.get base_url.join('animes', id.to_s, 'related').url, headers: headers, query: query end |
#anime_roles(id, headers: nil, **query) ⇒ Hash
Get an anime roles
109 110 111 |
# File 'lib/shikimori/api/v1/animes.rb', line 109 def anime_roles(id, headers: nil, **query) rest.get base_url.join('animes', id.to_s, 'roles').url, headers: headers, query: query end |
#anime_screenshots(id, headers: nil, **query) ⇒ Array<Hash>
Get an anime screenshots
176 177 178 |
# File 'lib/shikimori/api/v1/animes.rb', line 176 def anime_screenshots(id, headers: nil, **query) rest.get base_url.join('animes', id.to_s, 'screenshots').url, headers: headers, query: query end |
#anime_similar(id, headers: nil, **query) ⇒ Array<Hash>
Get an anime similar
131 132 133 |
# File 'lib/shikimori/api/v1/animes.rb', line 131 def anime_similar(id, headers: nil, **query) rest.get base_url.join('animes', id.to_s, 'similar').url, headers: headers, query: query end |
#anime_topics(id, headers: nil, **query) ⇒ Array<Hash>
Get an anime topics
246 247 248 |
# File 'lib/shikimori/api/v1/animes.rb', line 246 def anime_topics(id, headers: nil, **query) rest.get base_url.join('animes', id.to_s, 'topics').url, headers: headers, query: query end |
#animes(headers: nil, **query) ⇒ Array<Hash>
Get list of anime titles
67 68 69 |
# File 'lib/shikimori/api/v1/animes.rb', line 67 def animes(headers: nil, **query) rest.get base_url.join('animes').url, headers: headers, query: query end |