Sha256: 610f4665ea0fa8793394debe5d3b356c8d6f05fc362c7db596d7e820646bce1e

Contents?: true

Size: 594 Bytes

Versions: 19

Compression:

Stored size: 594 Bytes

Contents

module Lol
  class MasteryPage < Model

    # @!attribute [r] id
    # @return [Fixnum] mastery page id
    attr_reader :id

    # @!attribute [r] masteries
    # @return [Array] array of Lol::Mastery
    attr_reader :masteries

    # @!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 masteries= new_masteries
      @masteries = new_masteries.map {|t| Mastery.new t}
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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