Sha256: c148f5bb0edec9f0396967f32be93096f97df534880eea406c24e349ae0bf901

Contents?: true

Size: 774 Bytes

Versions: 12

Compression:

Stored size: 774 Bytes

Contents

module Lol
  # Holds the representation of a League
  class League < Model
    # @!attribute [r] name
    # @return [String] name of league
    attr_reader :name

    # @!attribute [r] tier
    # @return [String] tier of league
    attr_reader :tier

    # @!attribute [r] queue
    # @return [String] type of queue
    attr_reader :queue

    # @!attribute [r] entries
    # @return [String] summoners / teams in queue
    attr_reader :entries

    # @!attribute [r] participant_id
    # @return [String] summoner id of league participant
    attr_reader :participant_id

    private

    attr_writer :timestamp, :name, :tier, :queue, :participant_id

    def entries= list
      @entries = []
      list.each {|entry| @entries << LeagueEntry.new(entry)}
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ruby-lol-0.9.18 lib/lol/league.rb
ruby-lol-0.9.17 lib/lol/league.rb
ruby-lol-0.9.16 lib/lol/league.rb
ruby-lol-0.9.15 lib/lol/league.rb
ruby-lol-0.9.14 lib/lol/league.rb
ruby-lol-0.9.13 lib/lol/league.rb
ruby-lol-0.9.12 lib/lol/league.rb
ruby-lol-0.9.11 lib/lol/league.rb
ruby-lol-0.9.10 lib/lol/league.rb
ruby-lol-0.9.9 lib/lol/league.rb
ruby-lol-0.9.8 lib/lol/league.rb
ruby-lol-0.9.7 lib/lol/league.rb