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.9.11 lib/lol/champion_statistics_summary.rb
ruby-lol-0.9.10 lib/lol/champion_statistics_summary.rb
ruby-lol-0.9.9 lib/lol/champion_statistics_summary.rb
ruby-lol-0.9.8 lib/lol/champion_statistics_summary.rb
ruby-lol-0.9.7 lib/lol/champion_statistics_summary.rb
ruby-lol-0.9.6 lib/lol/champion_statistics_summary.rb