Module: Shikimori::API::V2::AbuseRequests
- Included in:
- Shikimori::API::V2
- Defined in:
- lib/shikimori/api/v2/abuse_requests.rb
Overview
Methods for the Abuse requests API
Instance Method Summary collapse
-
#abuse_offtopic_request(abuse_request, headers: nil, **query) ⇒ Hash
Abuse offtopic request.
-
#abuse_request(abuse_request, headers: nil, **query) ⇒ Hash
Abuse abuse request.
-
#abuse_review_request(abuse_request, headers: nil, **query) ⇒ Hash
Abuse review request.
-
#abuse_spoiler_request(abuse_request, headers: nil, **query) ⇒ Hash
Abuse spoiler request.
Instance Method Details
#abuse_offtopic_request(abuse_request, headers: nil, **query) ⇒ Hash
Abuse offtopic request
27 28 29 |
# File 'lib/shikimori/api/v2/abuse_requests.rb', line 27 def abuse_offtopic_request(abuse_request, headers: nil, **query) rest.post base_url.join('abuse_requests', 'offtopic').url, abuse_request.to_h, headers: headers, query: query end |
#abuse_request(abuse_request, headers: nil, **query) ⇒ Hash
Abuse abuse request
74 75 76 |
# File 'lib/shikimori/api/v2/abuse_requests.rb', line 74 def abuse_request(abuse_request, headers: nil, **query) rest.post base_url.join('abuse_requests', 'abuse').url, abuse_request.to_h, headers: headers, query: query end |
#abuse_review_request(abuse_request, headers: nil, **query) ⇒ Hash
Abuse review request
49 50 51 52 53 |
# File 'lib/shikimori/api/v2/abuse_requests.rb', line 49 def abuse_review_request(abuse_request, headers: nil, **query) rest.post base_url.join('abuse_requests', 'convert_review').url, abuse_request.to_h, headers: headers, query: query end |
#abuse_spoiler_request(abuse_request, headers: nil, **query) ⇒ Hash
Abuse spoiler request
97 98 99 |
# File 'lib/shikimori/api/v2/abuse_requests.rb', line 97 def abuse_spoiler_request(abuse_request, headers: nil, **query) rest.post base_url.join('abuse_requests', 'spoiler').url, abuse_request.to_h, headers: headers, query: query end |