Class: Adam::Kill::Loot

Inherits:
Object
  • Object
show all
Defined in:
lib/adam/kill.rb

Overview

Instances of the Loot class represent a piece of loot of a kill.

Accessors:

  • name - A string describing the name of the item.

  • quantity - An integer describing the quantity of the item.

  • dropped - A boolean describing whether or not this item was dropped.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Loot

Returns a new instance of Loot.

Yields:

  • (_self)

Yield Parameters:



184
185
186
# File 'lib/adam/kill.rb', line 184

def initialize
  yield self if block_given?
end

Instance Attribute Details

#droppedObject

Returns the value of attribute dropped.



182
183
184
# File 'lib/adam/kill.rb', line 182

def dropped
  @dropped
end

#locationObject

Returns the value of attribute location.



182
183
184
# File 'lib/adam/kill.rb', line 182

def location
  @location
end

#nameObject

Returns the value of attribute name.



182
183
184
# File 'lib/adam/kill.rb', line 182

def name
  @name
end

#quantityObject

Returns the value of attribute quantity.



182
183
184
# File 'lib/adam/kill.rb', line 182

def quantity
  @quantity
end