Module: Shikimori::API::V1::Ranobe
- Included in:
- Shikimori::API::V1
- Defined in:
- lib/shikimori/api/v1/ranobe.rb
Overview
Methods for the Ranobes API
Instance Method Summary collapse
-
#ranobe(id, headers: nil, **query) ⇒ Hash
Get an ranobe by id.
-
#ranobe_external_links(id, headers: nil, **query) ⇒ Array<Hash>
Get an ranobe external links.
-
#ranobe_franchise(id, headers: nil, **query) ⇒ Hash
Get an ranobe franchise.
-
#ranobe_related(id, headers: nil, **query) ⇒ Array<Hash>
Get an related ranobes.
-
#ranobe_roles(id, headers: nil, **query) ⇒ Hash
Get an ranobe roles.
-
#ranobe_similar(id, headers: nil, **query) ⇒ Array<Hash>
Get an ranobe similar.
-
#ranobe_topics(id, headers: nil, **query) ⇒ Array<Hash>
Get an ranobe topics.
-
#ranobes(headers: nil, **query) ⇒ Array<Hash>
Get list of ranobe titles.
Instance Method Details
#ranobe(id, headers: nil, **query) ⇒ Hash
Get an ranobe by id
78 79 80 |
# File 'lib/shikimori/api/v1/ranobe.rb', line 78 def ranobe(id, headers: nil, **query) rest.get base_url.join('ranobe', id.to_s).url, headers: headers, query: query end |
#ranobe_external_links(id, headers: nil, **query) ⇒ Array<Hash>
Get an ranobe external links
179 180 181 |
# File 'lib/shikimori/api/v1/ranobe.rb', line 179 def ranobe_external_links(id, headers: nil, **query) rest.get base_url.join('ranobe', id.to_s, 'external_links').url, headers: headers, query: query end |
#ranobe_franchise(id, headers: nil, **query) ⇒ Hash
Get an ranobe franchise
159 160 161 |
# File 'lib/shikimori/api/v1/ranobe.rb', line 159 def ranobe_franchise(id, headers: nil, **query) rest.get base_url.join('ranobe', id.to_s, 'franchise').url, headers: headers, query: query end |
#ranobe_related(id, headers: nil, **query) ⇒ Array<Hash>
Get an related ranobes
139 140 141 |
# File 'lib/shikimori/api/v1/ranobe.rb', line 139 def (id, headers: nil, **query) rest.get base_url.join('ranobe', id.to_s, 'related').url, headers: headers, query: query end |
#ranobe_roles(id, headers: nil, **query) ⇒ Hash
Get an ranobe roles
98 99 100 |
# File 'lib/shikimori/api/v1/ranobe.rb', line 98 def ranobe_roles(id, headers: nil, **query) rest.get base_url.join('ranobe', id.to_s, 'roles').url, headers: headers, query: query end |
#ranobe_similar(id, headers: nil, **query) ⇒ Array<Hash>
Get an ranobe similar
118 119 120 |
# File 'lib/shikimori/api/v1/ranobe.rb', line 118 def ranobe_similar(id, headers: nil, **query) rest.get base_url.join('ranobe', id.to_s, 'similar').url, headers: headers, query: query end |
#ranobe_topics(id, headers: nil, **query) ⇒ Array<Hash>
Get an ranobe topics
200 201 202 |
# File 'lib/shikimori/api/v1/ranobe.rb', line 200 def ranobe_topics(id, headers: nil, **query) rest.get base_url.join('ranobe', id.to_s, 'topics').url, headers: headers, query: query end |
#ranobes(headers: nil, **query) ⇒ Array<Hash>
Get list of ranobe titles
58 59 60 |
# File 'lib/shikimori/api/v1/ranobe.rb', line 58 def ranobes(headers: nil, **query) rest.get base_url.join('ranobe').url, headers: headers, query: query end |