Class: Lol::FeaturedGameList
- Inherits:
-
Array
- Object
- Array
- Lol::FeaturedGameList
- 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
-
#client_refresh_interval ⇒ Integer
readonly
The suggested interval to wait before requesting FeaturedGames again.
Instance Method Summary collapse
-
#initialize(data) ⇒ FeaturedGameList
constructor
A new instance of FeaturedGameList.
Constructor Details
#initialize(data) ⇒ FeaturedGameList
Returns a new instance of 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_interval ⇒ Integer (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 |