Sha256: 8fa2db3f53470223b8a07eb4e9b4d5294cfd178e6e84b0a5255dc9ef3755fb37
Contents?: true
Size: 531 Bytes
Versions: 3
Compression:
Stored size: 531 Bytes
Contents
module Twitch # A filterable category for a stream. # (not necessarily limited to games, e.g. 'IRL') class Game # ID of the game. attr_reader :id # Name of the game attr_reader :name # Box art URL template. # # Substitute the {width} and {height} string tokens # with your desired numeric values. attr_reader :box_art_url def initialize(attributes = {}) @id = attributes['id'] @name = attributes['name'] @box_art_url = attributes['box_art_url'] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
twitch-api-0.4.0 | lib/twitch/game.rb |
twitch-api-0.3.0 | lib/twitch/game.rb |
twitch-api-0.2.0 | lib/twitch/game.rb |