Sha256: 8a8276a8a742f3ebb53a2a96326ebd10521bfadb3795a174d4c172545c65c39f

Contents?: true

Size: 537 Bytes

Versions: 26

Compression:

Stored size: 537 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= value
      @stats = value.is_a?(Hash) && OpenStruct.new(Lol.underscore_hash_keys value) || value
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ruby-lol-0.12.2 lib/lol/champion_statistics_summary.rb
ruby-lol-0.12.1 lib/lol/champion_statistics_summary.rb
ruby-lol-0.12.0 lib/lol/champion_statistics_summary.rb
ruby-lol-0.11.6 lib/lol/champion_statistics_summary.rb
ruby-lol-0.11.5 lib/lol/champion_statistics_summary.rb
ruby-lol-0.11.4 lib/lol/champion_statistics_summary.rb
ruby-lol-0.11.3 lib/lol/champion_statistics_summary.rb
ruby-lol-0.11.2 lib/lol/champion_statistics_summary.rb
ruby-lol-0.11.1 lib/lol/champion_statistics_summary.rb
ruby-lol-0.11.0 lib/lol/champion_statistics_summary.rb
ruby-lol-0.10.0 lib/lol/champion_statistics_summary.rb
ruby-lol-0.9.19.1 lib/lol/champion_statistics_summary.rb
ruby-lol-0.9.19 lib/lol/champion_statistics_summary.rb
ruby-lol-0.9.18 lib/lol/champion_statistics_summary.rb
ruby-lol-0.9.17 lib/lol/champion_statistics_summary.rb
ruby-lol-0.9.16 lib/lol/champion_statistics_summary.rb
ruby-lol-0.9.15 lib/lol/champion_statistics_summary.rb
ruby-lol-0.9.14 lib/lol/champion_statistics_summary.rb
ruby-lol-0.9.13 lib/lol/champion_statistics_summary.rb
ruby-lol-0.9.12 lib/lol/champion_statistics_summary.rb