Module: Shikimori::API::V1::Mangas
- Included in:
- Shikimori::API::V1
- Defined in:
- lib/shikimori/api/v1/mangas.rb
Overview
Methods for the Mangas API
Instance Method Summary collapse
-
#manga(id, headers: nil, **query) ⇒ Hash
Get an manga by id.
-
#manga_external_links(id, headers: nil, **query) ⇒ Array<Hash>
Get an manga external links.
-
#manga_franchise(id, headers: nil, **query) ⇒ Hash
Get an manga franchise.
-
#manga_related(id, headers: nil, **query) ⇒ Array<Hash>
Get an related mangas.
-
#manga_roles(id, headers: nil, **query) ⇒ Hash
Get an manga roles.
-
#manga_similar(id, headers: nil, **query) ⇒ Array<Hash>
Get an manga similar.
-
#manga_topics(id, headers: nil, **query) ⇒ Array<Hash>
Get an manga topics.
-
#mangas(headers: nil, **query) ⇒ Array<Hash>
Get list of manga titles.
Instance Method Details
#manga(id, headers: nil, **query) ⇒ Hash
Get an manga by id
83 84 85 |
# File 'lib/shikimori/api/v1/mangas.rb', line 83 def manga(id, headers: nil, **query) rest.get base_url.join('mangas', id.to_s).url, headers: headers, query: query end |
#manga_external_links(id, headers: nil, **query) ⇒ Array<Hash>
Get an manga external links
184 185 186 |
# File 'lib/shikimori/api/v1/mangas.rb', line 184 def manga_external_links(id, headers: nil, **query) rest.get base_url.join('mangas', id.to_s, 'external_links').url, headers: headers, query: query end |
#manga_franchise(id, headers: nil, **query) ⇒ Hash
Get an manga franchise
164 165 166 |
# File 'lib/shikimori/api/v1/mangas.rb', line 164 def manga_franchise(id, headers: nil, **query) rest.get base_url.join('mangas', id.to_s, 'franchise').url, headers: headers, query: query end |
#manga_related(id, headers: nil, **query) ⇒ Array<Hash>
Get an related mangas
144 145 146 |
# File 'lib/shikimori/api/v1/mangas.rb', line 144 def (id, headers: nil, **query) rest.get base_url.join('mangas', id.to_s, 'related').url, headers: headers, query: query end |
#manga_roles(id, headers: nil, **query) ⇒ Hash
Get an manga roles
103 104 105 |
# File 'lib/shikimori/api/v1/mangas.rb', line 103 def manga_roles(id, headers: nil, **query) rest.get base_url.join('mangas', id.to_s, 'roles').url, headers: headers, query: query end |
#manga_similar(id, headers: nil, **query) ⇒ Array<Hash>
Get an manga similar
123 124 125 |
# File 'lib/shikimori/api/v1/mangas.rb', line 123 def manga_similar(id, headers: nil, **query) rest.get base_url.join('mangas', id.to_s, 'similar').url, headers: headers, query: query end |
#manga_topics(id, headers: nil, **query) ⇒ Array<Hash>
Get an manga topics
205 206 207 |
# File 'lib/shikimori/api/v1/mangas.rb', line 205 def manga_topics(id, headers: nil, **query) rest.get base_url.join('mangas', id.to_s, 'topics').url, headers: headers, query: query end |
#mangas(headers: nil, **query) ⇒ Array<Hash>
Get list of manga titles
63 64 65 |
# File 'lib/shikimori/api/v1/mangas.rb', line 63 def mangas(headers: nil, **query) rest.get base_url.join('mangas').url, headers: headers, query: query end |