Sha256: 373f32ffa0734ebacd3e4ee4da995a6ae22873a9e9eb4e98bb27e8edb23407e0

Contents?: true

Size: 1.28 KB

Versions: 27

Compression:

Stored size: 1.28 KB

Contents

require 'lol/model'

module Lol
  class TeamStatistic < Lol::Model
    # @!attribute [r] full_id
    # @return [String] Full Team ID
    attr_reader :full_id

    # @!attribute [r] average_games_played
    # @return [Fixnum] Average games played
    attr_reader :average_games_played

    # @!attribute [r] average_games_played
    # @return [Fixnum] Average games played
    attr_reader :average_games_played

    # @!attribute [r] losses
    # @return [Fixnum] Number of losses
    attr_reader :losses

    # @!attribute [r] max_rating
    # @return [Fixnum] Max Ratingx
    attr_reader :max_rating

    # @!attribute [r] rating
    # @return [Fixnum] Rating
    attr_reader :rating

    # @!attribute [r] seed_rating
    # @return [Fixnum] Seed Rating
    attr_reader :seed_rating

    # @!attribute [r] team_id
    # @return [Fixnum] Team Id
    attr_reader :team_id

    # @!attribute [r] team_stat_type
    # @return [String] Team Statistic Type name
    attr_reader :team_stat_type

    # @!attribute [r] wins
    # @return [Fixnum] Number of wins
    attr_reader :wins

    private

    attr_writer :average_games_played, :losses, :max_rating, :rating, :seed_rating, :team_stat_type, :wins, :full_id

    def team_id= value
      @team_id = value.is_a?(Hash) && value['fullId'] || value
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

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