Class: Twitch::GameAnalytic
- Inherits:
-
Object
- Object
- Twitch::GameAnalytic
- Defined in:
- lib/twitch/game_analytic.rb
Overview
Data object for ‘/analytics/games` requests
Instance Attribute Summary collapse
-
#game_id ⇒ Object
readonly
ID of the game requested.
-
#url ⇒ Object
readonly
A link to a (CSV format) data report.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ GameAnalytic
constructor
A new instance of GameAnalytic.
Constructor Details
#initialize(attributes = {}) ⇒ GameAnalytic
Returns a new instance of GameAnalytic.
11 12 13 14 |
# File 'lib/twitch/game_analytic.rb', line 11 def initialize(attributes = {}) @game_id = attributes['game_id'] @url = attributes['URL'] end |
Instance Attribute Details
#game_id ⇒ Object (readonly)
ID of the game requested.
7 8 9 |
# File 'lib/twitch/game_analytic.rb', line 7 def game_id @game_id end |
#url ⇒ Object (readonly)
A link to a (CSV format) data report.
9 10 11 |
# File 'lib/twitch/game_analytic.rb', line 9 def url @url end |