Sha256: 2eafb8f781d0bed1fa63ccd1e782cef7931d2a9914073d6419487f0a5c125b64

Contents?: true

Size: 638 Bytes

Versions: 2

Compression:

Stored size: 638 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.4 lib/lol/league.rb
ruby-lol-0.9.3 lib/lol/league.rb