Module: Shikimori::API::V2::TopicIgnore
- Included in:
- Shikimori::API::V2
- Defined in:
- lib/shikimori/api/v2/topic_ignore.rb
Overview
Methods for the Topic ignores API
Instance Method Summary collapse
-
#create_topic_ignore(topic_id, headers: nil, **query) ⇒ Hash
Add topic to ignore by id.
-
#delete_topic_ignore(topic_id, headers: nil, **query) ⇒ Boolean
Delete a topic ignore by id.
Instance Method Details
#create_topic_ignore(topic_id, headers: nil, **query) ⇒ Hash
Add topic to ignore by id. Requires ‘topics` oauth scope
27 28 29 |
# File 'lib/shikimori/api/v2/topic_ignore.rb', line 27 def create_topic_ignore(topic_id, headers: nil, **query) rest.post base_url.join('topics', topic_id.to_s, 'ignore').url, {}, headers: headers, query: query end |
#delete_topic_ignore(topic_id, headers: nil, **query) ⇒ Boolean
Delete a topic ignore by id. Requires ‘ignores` oauth scope
48 49 50 |
# File 'lib/shikimori/api/v2/topic_ignore.rb', line 48 def delete_topic_ignore(topic_id, headers: nil, **query) rest.delete base_url.join('topics', topic_id.to_s, 'ignore').url, headers: headers, query: query end |