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