Sha256: 36ef2c7813ec9151eb085aedd107ac72c65d6210058858bc2498bb8ad9fdfe5c

Contents?: true

Size: 448 Bytes

Versions: 3

Compression:

Stored size: 448 Bytes

Contents

module Lol
  class RuneSlot < Model
    # @!attribute [r] id
    #   @return [Fixnum] id of RuneSlot
    def id
      @rune_slot_id
    end

    # @!attribute [r] rune
    # @return [Rune] rune placed in the slot
    attr_reader :rune

    private

    def rune= rune_data
      @rune = Rune.new rune_data
    end

    def id= new_id
      @rune_slot_id = new_id
    end

    def rune_slot_id= new_id
      @rune_slot_id = new_id
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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