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