Class: LeagueOfLegends::DTO::LeagueItemList
- Defined in:
- lib/league_of_legends/dto/league_item_list.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
readonly
Returns the value of attribute list.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(json) ⇒ LeagueItemList
constructor
A new instance of LeagueItemList.
Constructor Details
#initialize(json) ⇒ LeagueItemList
Returns a new instance of LeagueItemList.
13 14 15 16 17 18 19 |
# File 'lib/league_of_legends/dto/league_item_list.rb', line 13 def initialize json attributes = build_attributes json @list = attributes.map do |item| ::LeagueOfLegends::DTO::LeagueItem.new(item) end end |
Instance Attribute Details
#list ⇒ Object (readonly)
Returns the value of attribute list.
11 12 13 |
# File 'lib/league_of_legends/dto/league_item_list.rb', line 11 def list @list end |
Class Method Details
.version ⇒ Object
7 8 9 |
# File 'lib/league_of_legends/dto/league_item_list.rb', line 7 def self.version ::LeagueOfLegends::DTO::League.version end |