Class: Marver::Story

Inherits:
Object
  • Object
show all
Defined in:
lib/marver/entities/story.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#charactersObject (readonly)

Returns the value of attribute characters.



5
6
7
# File 'lib/marver/entities/story.rb', line 5

def characters
  @characters
end

#comicsObject (readonly)

Returns the value of attribute comics.



5
6
7
# File 'lib/marver/entities/story.rb', line 5

def comics
  @comics
end

#creatorsObject (readonly)

Returns the value of attribute creators.



5
6
7
# File 'lib/marver/entities/story.rb', line 5

def creators
  @creators
end

#descriptionObject (readonly)

Returns the value of attribute description.



5
6
7
# File 'lib/marver/entities/story.rb', line 5

def description
  @description
end

#eventsObject (readonly)

Returns the value of attribute events.



5
6
7
# File 'lib/marver/entities/story.rb', line 5

def events
  @events
end

#original_issueObject (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_uriObject (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

#seriesObject (readonly)

Returns the value of attribute series.



5
6
7
# File 'lib/marver/entities/story.rb', line 5

def series
  @series
end

#thumbnailObject (readonly)

Returns the value of attribute thumbnail.



5
6
7
# File 'lib/marver/entities/story.rb', line 5

def thumbnail
  @thumbnail
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/marver/entities/story.rb', line 5

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/marver/entities/story.rb', line 5

def type
  @type
end