Class: Shikimori::API::V2
- Inherits:
-
Object
- Object
- Shikimori::API::V2
- Includes:
- AbuseRequests, EpisodeNotifications, TopicIgnore, UserIgnore, UserRates
- Defined in:
- lib/shikimori/api/v2.rb,
lib/shikimori/api/v2/user_rates.rb,
lib/shikimori/api/v2/user_ignore.rb,
lib/shikimori/api/v2/topic_ignore.rb,
lib/shikimori/api/v2/abuse_requests.rb,
lib/shikimori/api/v2/episode_notifications.rb
Overview
Methods for second version of shikimori’s API
Defined Under Namespace
Modules: AbuseRequests, EpisodeNotifications, TopicIgnore, UserIgnore, UserRates
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#rest ⇒ Object
readonly
Returns the value of attribute rest.
Instance Method Summary collapse
-
#initialize(base_url:, rest:) ⇒ V2
constructor
A new instance of V2.
Methods included from UserRates
#create_user_rate, #delete_user_rate, #increment_user_rate, #update_user_rate, #user_rate, #user_rates
Methods included from UserIgnore
#create_user_ignore, #delete_user_ignore
Methods included from TopicIgnore
#create_topic_ignore, #delete_topic_ignore
Methods included from EpisodeNotifications
Methods included from AbuseRequests
#abuse_offtopic_request, #abuse_request, #abuse_review_request, #abuse_spoiler_request
Constructor Details
#initialize(base_url:, rest:) ⇒ V2
Returns a new instance of V2.
21 22 23 24 |
# File 'lib/shikimori/api/v2.rb', line 21 def initialize(base_url:, rest:) @rest = rest @base_url = base_url end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
19 20 21 |
# File 'lib/shikimori/api/v2.rb', line 19 def base_url @base_url end |
#rest ⇒ Object (readonly)
Returns the value of attribute rest.
19 20 21 |
# File 'lib/shikimori/api/v2.rb', line 19 def rest @rest end |