Class: Vapor::Game
- Inherits:
-
Object
- Object
- Vapor::Game
- Defined in:
- lib/vapor/game.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#time_spent_in_hours ⇒ Object
readonly
Returns the value of attribute time_spent_in_hours.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(xml_node) ⇒ Game
constructor
A new instance of Game.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/vapor/game.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/vapor/game.rb', line 3 def name @name end |
#time_spent_in_hours ⇒ Object (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 |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/vapor/game.rb', line 3 def url @url end |