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