Class: Marver::Story
- Inherits:
-
Object
- Object
- Marver::Story
- Defined in:
- lib/marver/entities/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.
-
#original_issue ⇒ Object
readonly
Returns the value of attribute original_issue.
-
#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.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/marver/entities/story.rb', line 8 def initialize(args) @characters = args[:characters] @creators = args[:creators] @events = args[:events] @series = args[:series] @comics = args[:comics] @original_issue = args[:original_issue] args[:attributes].each do |name, value| instance_variable_set("@#{name}", value) end end |
Instance Attribute Details
#characters ⇒ Object (readonly)
Returns the value of attribute characters.
5 6 7 |
# File 'lib/marver/entities/story.rb', line 5 def characters @characters end |
#comics ⇒ Object (readonly)
Returns the value of attribute comics.
5 6 7 |
# File 'lib/marver/entities/story.rb', line 5 def comics @comics end |
#creators ⇒ Object (readonly)
Returns the value of attribute creators.
5 6 7 |
# File 'lib/marver/entities/story.rb', line 5 def creators @creators end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/marver/entities/story.rb', line 5 def description @description end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
5 6 7 |
# File 'lib/marver/entities/story.rb', line 5 def events @events end |
#original_issue ⇒ Object (readonly)
Returns the value of attribute original_issue.
5 6 7 |
# File 'lib/marver/entities/story.rb', line 5 def original_issue @original_issue end |
#resource_uri ⇒ Object (readonly)
Returns the value of attribute resource_uri.
5 6 7 |
# File 'lib/marver/entities/story.rb', line 5 def resource_uri @resource_uri end |
#series ⇒ Object (readonly)
Returns the value of attribute series.
5 6 7 |
# File 'lib/marver/entities/story.rb', line 5 def series @series end |
#thumbnail ⇒ Object (readonly)
Returns the value of attribute thumbnail.
5 6 7 |
# File 'lib/marver/entities/story.rb', line 5 def thumbnail @thumbnail end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/marver/entities/story.rb', line 5 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/marver/entities/story.rb', line 5 def type @type end |