Sha256: 2675a332e62c82455fdc7f8a0f76dc80c219ee81e11d43fe3b253aebb4ceadec

Contents?: true

Size: 630 Bytes

Versions: 2

Compression:

Stored size: 630 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

    private

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-lol-0.9.6 lib/lol/league.rb
ruby-lol-0.9.5 lib/lol/league.rb