Class: PSN::Game
- Inherits:
-
Object
- Object
- PSN::Game
- Defined in:
- lib/psn/game.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
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/psn/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/psn/game.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/psn/game.rb', line 3 def name @name end |
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
3 4 5 |
# File 'lib/psn/game.rb', line 3 def platform @platform end |