Class: Twitch::GameAnalytic

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

Overview

Data object for ‘/analytics/games` requests

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (readonly)

ID of the game requested.



7
8
9
# File 'lib/twitch/game_analytic.rb', line 7

def game_id
  @game_id
end

#urlObject (readonly)

A link to a (CSV format) data report.



9
10
11
# File 'lib/twitch/game_analytic.rb', line 9

def url
  @url
end