Module: Shikimori::API::V1::Constants
- Included in:
- Shikimori::API::V1
- Defined in:
- lib/shikimori/api/v1/constants.rb
Overview
Methods for the Constants API
Instance Method Summary collapse
-
#anime_constants(headers: nil, **query) ⇒ Hash
Get anime constants.
-
#club_constants(headers: nil, **query) ⇒ Hash
Get club constants.
-
#manga_constants(headers: nil, **query) ⇒ Hash
Get manga constants.
-
#smileys_constants(headers: nil, **query) ⇒ Array<Hash>
Get list of smileys constants.
-
#user_rate_constants(headers: nil, **query) ⇒ Hash
Get user rate constants.
Instance Method Details
#anime_constants(headers: nil, **query) ⇒ Hash
Get anime constants
25 26 27 |
# File 'lib/shikimori/api/v1/constants.rb', line 25 def anime_constants(headers: nil, **query) rest.get base_url.join('constants', 'anime').url, headers: headers, query: query end |
#club_constants(headers: nil, **query) ⇒ Hash
Get club constants
82 83 84 |
# File 'lib/shikimori/api/v1/constants.rb', line 82 def club_constants(headers: nil, **query) rest.get base_url.join('constants', 'club').url, headers: headers, query: query end |
#manga_constants(headers: nil, **query) ⇒ Hash
Get manga constants
44 45 46 |
# File 'lib/shikimori/api/v1/constants.rb', line 44 def manga_constants(headers: nil, **query) rest.get base_url.join('constants', 'manga').url, headers: headers, query: query end |
#smileys_constants(headers: nil, **query) ⇒ Array<Hash>
Get list of smileys constants
101 102 103 |
# File 'lib/shikimori/api/v1/constants.rb', line 101 def smileys_constants(headers: nil, **query) rest.get base_url.join('constants', 'smileys').url, headers: headers, query: query end |
#user_rate_constants(headers: nil, **query) ⇒ Hash
Get user rate constants
63 64 65 |
# File 'lib/shikimori/api/v1/constants.rb', line 63 def user_rate_constants(headers: nil, **query) rest.get base_url.join('constants', 'user_rate').url, headers: headers, query: query end |