Class: PSN::Game

Inherits:
Object
  • Object
show all
Defined in:
lib/psn/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/psn/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/psn/game.rb', line 3

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#platformObject (readonly)

Returns the value of attribute platform.



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

def platform
  @platform
end