Sha256: d6ce05c9af876177ef4e8d40f34fca66cfbf714197f02e3571e0b2f13a91b5fb
Contents?: true
Size: 493 Bytes
Versions: 1
Compression:
Stored size: 493 Bytes
Contents
module Lolxin class LeagueListDto attr_accessor(*%i( tier queue name entries data league_id )) def initialize(data) @data = data initialize_with(data) end private def initialize_with(data) @league_id = data['leagueId'] @tier = data['tier'] @queue = data['queue'] @name = data['name'] @entries = data['entries'].map { |entry| LeagueItemDto.new(entry) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lolxin-0.13.0 | lib/lolxin/dto/league_list_dto.rb |