Class: Twitch::Game

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Game

Returns a new instance of Game.



5
6
7
8
9
# File 'lib/twitch/game.rb', line 5

def initialize(attributes = {})
  attributes.each do |k, v|
    instance_variable_set("@#{k}", v)
  end
end

Instance Attribute Details

#box_art_urlObject (readonly)

Returns the value of attribute box_art_url.



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

def box_art_url
  @box_art_url
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end