Sha256: 07ae3b80dd93180e3beff148e0cb3b64e77e4a34ad61753183e9c584f4a72fa1

Contents?: true

Size: 583 Bytes

Versions: 21

Compression:

Stored size: 583 Bytes

Contents

module Lol
  class RunePage < Model
    # @!attribute [r] id
    # @return [Fixnum] id of Runepage
    attr_reader :id

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

    # @!attribute [r] current
    # @return [Boolean] is the Runepage currently active?
    attr_reader :current


    # @!attribute [r] current
    # @return [Array] array of Lol::RuneSlot
    attr_reader :slots

    private

    attr_writer :id, :name, :current

    def slots= *runeslots
      @slots = runeslots.flatten.map {|slot| RuneSlot.new slot}
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

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