Class: LeagueOfLegends::DTO::LeagueItemList

Inherits:
Base
  • Object
show all
Defined in:
lib/league_of_legends/dto/league_item_list.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#listObject (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

.versionObject



7
8
9
# File 'lib/league_of_legends/dto/league_item_list.rb', line 7

def self.version
  ::LeagueOfLegends::DTO::League.version
end