Class: Thanos::Series
- Inherits:
-
Object
- Object
- Thanos::Series
- Defined in:
- lib/thanos/resources/series.rb
Instance Attribute Summary collapse
-
#characters ⇒ Object
readonly
Returns the value of attribute characters.
-
#comics ⇒ Object
readonly
Returns the value of attribute comics.
-
#creators ⇒ Object
readonly
Returns the value of attribute creators.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#end_year ⇒ Object
readonly
Returns the value of attribute end_year.
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#next ⇒ Object
readonly
Returns the value of attribute next.
-
#previous ⇒ Object
readonly
Returns the value of attribute previous.
-
#rating ⇒ Object
readonly
Returns the value of attribute rating.
-
#resource_uri ⇒ Object
readonly
Returns the value of attribute resource_uri.
-
#start_year ⇒ Object
readonly
Returns the value of attribute start_year.
-
#stories ⇒ Object
readonly
Returns the value of attribute stories.
-
#thumbnail ⇒ Object
readonly
Returns the value of attribute thumbnail.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#urls ⇒ Object
readonly
Returns the value of attribute urls.
Instance Method Summary collapse
-
#initialize(args) ⇒ Series
constructor
A new instance of Series.
Constructor Details
#initialize(args) ⇒ Series
Returns a new instance of Series.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/thanos/resources/series.rb', line 7 def initialize(args) @stories = args[:stories] @events = args[:events] @creators = args[:creators] @characters = args[:characters] @comics = args[:comics] @urls = args[:urls] @thumbnail = args[:thumbnail] @next = args[:next_series] @previous = args[:previous_series] args[:attributes].each do |attribute, value| instance_variable_set("@#{attribute}", value) end end |
Instance Attribute Details
#characters ⇒ Object (readonly)
Returns the value of attribute characters.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def characters @characters end |
#comics ⇒ Object (readonly)
Returns the value of attribute comics.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def comics @comics end |
#creators ⇒ Object (readonly)
Returns the value of attribute creators.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def creators @creators end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def description @description end |
#end_year ⇒ Object (readonly)
Returns the value of attribute end_year.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def end_year @end_year end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def events @events end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def id @id end |
#next ⇒ Object (readonly)
Returns the value of attribute next.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def next @next end |
#previous ⇒ Object (readonly)
Returns the value of attribute previous.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def previous @previous end |
#rating ⇒ Object (readonly)
Returns the value of attribute rating.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def @rating end |
#resource_uri ⇒ Object (readonly)
Returns the value of attribute resource_uri.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def resource_uri @resource_uri end |
#start_year ⇒ Object (readonly)
Returns the value of attribute start_year.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def start_year @start_year end |
#stories ⇒ Object (readonly)
Returns the value of attribute stories.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def stories @stories end |
#thumbnail ⇒ Object (readonly)
Returns the value of attribute thumbnail.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def thumbnail @thumbnail end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def type @type end |
#urls ⇒ Object (readonly)
Returns the value of attribute urls.
3 4 5 |
# File 'lib/thanos/resources/series.rb', line 3 def urls @urls end |