Sha256: 0ba6095d22c095380f61cb4e72f00ddfa772c6e0ab8a65742155827f6baa720f
Contents?: true
Size: 563 Bytes
Versions: 3
Compression:
Stored size: 563 Bytes
Contents
require 'lol/model' module Lol class ChampionStatisticsSummary < Lol::Model # @!attribute [r] id # @return [Fixnum] Champion Id attr_reader :id # @!attribute [r] name # @return [String] Champion Name attr_reader :name # @!attribute [r] stats # @return [Array] List of stats associated with this champion attr_reader :stats private attr_writer :id, :name def stats= collection @stats = collection.map do |c| c.respond_to?(:[]) && ChampionStatistic.new(c) || c end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-lol-0.9.1 | lib/lol/champion_statistics_summary.rb |
ruby-lol-0.0.7 | lib/lol/champion_statistics_summary.rb |
ruby-lol-0.0.6 | lib/lol/champion_statistics_summary.rb |