Class: Vapor::Game

Inherits:
Object
  • Object
show all
Defined in:
lib/vapor/game.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml_node) ⇒ Game

Returns a new instance of Game.



4
5
6
# File 'lib/vapor/game.rb', line 4

def initialize(xml_node)
  parse_xml(xml_node)
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/vapor/game.rb', line 3

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/vapor/game.rb', line 3

def name
  @name
end

#time_spent_in_hoursObject (readonly)

Returns the value of attribute time_spent_in_hours.



3
4
5
# File 'lib/vapor/game.rb', line 3

def time_spent_in_hours
  @time_spent_in_hours
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/vapor/game.rb', line 3

def url
  @url
end