Sha256: 77c09408fe99e141183e535272b8a299a698d6133fa8211c0ec5742406e14d64

Contents?: true

Size: 453 Bytes

Versions: 27

Compression:

Stored size: 453 Bytes

Contents

require 'lol/model'

module Lol
  class Roster < Lol::Model
    # @!attribute [r] owner_id
    # @return [Fixnum] Team Owner Id
    attr_reader :owner_id

    # @!attribute [r] member_list
    # @return [Array] List of members
    attr_reader :member_list

    private

    attr_writer :owner_id

    def member_list= collection
      @member_list = collection.map do |c|
        c.respond_to?(:[]) && TeamMember.new(c) || c
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

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