Class: Lol::FeaturedGameList

Inherits:
Array
  • Object
show all
Defined in:
lib/lol/featured_game_list.rb

Overview

List of featured games

Each contained featured game is represented through DynamicModel

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ FeaturedGameList


10
11
12
13
# File 'lib/lol/featured_game_list.rb', line 10

def initialize data
  @client_refresh_interval = data['clientRefreshInterval']
  super data['gameList'].map { |g| DynamicModel.new g }
end

Instance Attribute Details

#client_refresh_intervalInteger (readonly)

The suggested interval to wait before requesting FeaturedGames again


8
9
10
# File 'lib/lol/featured_game_list.rb', line 8

def client_refresh_interval
  @client_refresh_interval
end