Sha256: fe03019b7d9f1bd1449669db12a9686ff80641396322afa19cc000edc5220a12

Contents?: true

Size: 605 Bytes

Versions: 3

Compression:

Stored size: 605 Bytes

Contents

module Lol
  class MasteryPage < Model

    # @!attribute [r] id
    #   @return [Fixnum] id of summoner
    attr_reader :summoner_id

    # @!attribute [r] talents
    #   @return [Array] array of Lol::Talent
    attr_reader :talents

    # @!attribute [r] name
    #   @return [String] name of mastery page
    attr_reader :name

    # @!attribute [r] current
    #   @return [Boolean] is it the current mastery page?
    attr_reader :current

    private

    attr_writer :summoner_id, :name, :current

    def talents= new_talents
      @talents = new_talents.map {|t| Talent.new t}
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-lol-0.9.4 lib/lol/mastery_page.rb
ruby-lol-0.9.3 lib/lol/mastery_page.rb
ruby-lol-0.9.1 lib/lol/mastery_page.rb