Sha256: 4cd7a81d452b935d9944daa14c3c65b468b78a6feaafb23dc00ee5ddadcb694a

Contents?: true

Size: 580 Bytes

Versions: 5

Compression:

Stored size: 580 Bytes

Contents

module Lol
  class MasteryPage < Model

    # @!attribute [r] id
    # @return [Fixnum] mastery page id
    attr_reader :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 :id, :name, :current

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-lol-0.9.12 lib/lol/mastery_page.rb
ruby-lol-0.9.11 lib/lol/mastery_page.rb
ruby-lol-0.9.10 lib/lol/mastery_page.rb
ruby-lol-0.9.9 lib/lol/mastery_page.rb
ruby-lol-0.9.8 lib/lol/mastery_page.rb