Class: Thanos::Story
- Inherits:
-
Object
- Object
- Thanos::Story
- Defined in:
- lib/thanos/resources/story.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.
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#resource_uri ⇒ Object
readonly
Returns the value of attribute resource_uri.
-
#series ⇒ Object
readonly
Returns the value of attribute series.
-
#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.
Instance Method Summary collapse
-
#initialize(args) ⇒ Story
constructor
A new instance of Story.
Constructor Details
#initialize(args) ⇒ Story
Returns a new instance of Story.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/thanos/resources/story.rb', line 6 def initialize(args) @characters = args[:characters] @creators = args[:creators] @events = args[:events] @series = args[:series] @comics = args[:comics] 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/story.rb', line 3 def characters @characters end |
#comics ⇒ Object (readonly)
Returns the value of attribute comics.
3 4 5 |
# File 'lib/thanos/resources/story.rb', line 3 def comics @comics end |
#creators ⇒ Object (readonly)
Returns the value of attribute creators.
3 4 5 |
# File 'lib/thanos/resources/story.rb', line 3 def creators @creators end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/thanos/resources/story.rb', line 3 def description @description end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
3 4 5 |
# File 'lib/thanos/resources/story.rb', line 3 def events @events end |
#resource_uri ⇒ Object (readonly)
Returns the value of attribute resource_uri.
3 4 5 |
# File 'lib/thanos/resources/story.rb', line 3 def resource_uri @resource_uri end |
#series ⇒ Object (readonly)
Returns the value of attribute series.
3 4 5 |
# File 'lib/thanos/resources/story.rb', line 3 def series @series end |
#thumbnail ⇒ Object (readonly)
Returns the value of attribute thumbnail.
3 4 5 |
# File 'lib/thanos/resources/story.rb', line 3 def thumbnail @thumbnail end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/thanos/resources/story.rb', line 3 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/thanos/resources/story.rb', line 3 def type @type end |