Class: Gogcom::Game

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

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Game

Returns a new instance of Game.



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

def initialize(options)
  @name = options[:name] || nil
end

Instance Method Details

#getObject

Main method to get game data



9
10
11
# File 'lib/gogcom/game.rb', line 9

def get()
  parse(fetch())
end