Class: Harkness::SeriesResource
- Defined in:
- lib/harkness/resources/series.rb
Overview
The series resource.
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#characters(series_id:) ⇒ Harkness::CharacterDataWrapper
Get a list of characters for a particular series.
-
#comics(series_id:) ⇒ Harkness::ComicDataWrapper
Get a list of comics for a particular series.
-
#creators(series_id:) ⇒ Harkness::CreatorDataWrapper
Get a list of creators for a particular series.
-
#events(series_id:) ⇒ Harkness::EventDataWrapper
Get a list of events for a particular series.
-
#list(**params) ⇒ Harkness::SeriesDataWrapper
Get a list of series.
-
#retrieve(series_id:) ⇒ Harkness::SeriesDataWrapper
Get a single series.
-
#stories(series_id:) ⇒ Harkness::StoryDataWrapper
Get a list of stories for a particular series.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Harkness::Resource
Instance Method Details
#characters(series_id:) ⇒ Harkness::CharacterDataWrapper
Get a list of characters for a particular series.
50 51 52 |
# File 'lib/harkness/resources/series.rb', line 50 def characters(series_id:) CharacterDataWrapper.from_json(get_request("series/#{series_id}/characters").body) end |
#comics(series_id:) ⇒ Harkness::ComicDataWrapper
Get a list of comics for a particular series.
32 33 34 |
# File 'lib/harkness/resources/series.rb', line 32 def comics(series_id:) ComicDataWrapper.from_json(get_request("series/#{series_id}/comics").body) end |
#creators(series_id:) ⇒ Harkness::CreatorDataWrapper
Get a list of creators for a particular series.
59 60 61 |
# File 'lib/harkness/resources/series.rb', line 59 def creators(series_id:) CreatorDataWrapper.from_json(get_request("series/#{series_id}/creators").body) end |
#events(series_id:) ⇒ Harkness::EventDataWrapper
Get a list of events for a particular series.
68 69 70 |
# File 'lib/harkness/resources/series.rb', line 68 def events(series_id:) EventDataWrapper.from_json(get_request("series/#{series_id}/events").body) end |
#list(**params) ⇒ Harkness::SeriesDataWrapper
Get a list of series.
14 15 16 |
# File 'lib/harkness/resources/series.rb', line 14 def list(**params) SeriesDataWrapper.from_json(get_request("series", params: params).body) end |
#retrieve(series_id:) ⇒ Harkness::SeriesDataWrapper
Get a single series.
23 24 25 |
# File 'lib/harkness/resources/series.rb', line 23 def retrieve(series_id:) SeriesDataWrapper.from_json(get_request("series/#{series_id}").body) end |
#stories(series_id:) ⇒ Harkness::StoryDataWrapper
Get a list of stories for a particular series.
41 42 43 |
# File 'lib/harkness/resources/series.rb', line 41 def stories(series_id:) StoryDataWrapper.from_json(get_request("series/#{series_id}/stories").body) end |