Class: Adam::Kill::Loot
- Inherits:
-
Object
- Object
- Adam::Kill::Loot
- 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. -
cargo
- A boolean describing whether or not this item was in the cargo hold. -
drone_bay
- A boolean describing whether or not this item was in the drone bay. -
dropped
- A boolean describing whether or not this item was dropped.
Instance Attribute Summary collapse
-
#cargo ⇒ Object
Returns the value of attribute cargo.
-
#drone_bay ⇒ Object
Returns the value of attribute drone_bay.
-
#dropped ⇒ Object
Returns the value of attribute dropped.
-
#name ⇒ Object
Returns the value of attribute name.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
Instance Method Summary collapse
- #cargo? ⇒ Boolean
- #dropped? ⇒ Boolean
-
#initialize {|_self| ... } ⇒ Loot
constructor
A new instance of Loot.
Constructor Details
#initialize {|_self| ... } ⇒ Loot
Returns a new instance of Loot.
190 191 192 |
# File 'lib/adam/kill.rb', line 190 def initialize yield self if block_given? end |
Instance Attribute Details
#cargo ⇒ Object
Returns the value of attribute cargo.
180 181 182 |
# File 'lib/adam/kill.rb', line 180 def cargo @cargo end |
#drone_bay ⇒ Object
Returns the value of attribute drone_bay.
180 181 182 |
# File 'lib/adam/kill.rb', line 180 def drone_bay @drone_bay end |
#dropped ⇒ Object
Returns the value of attribute dropped.
180 181 182 |
# File 'lib/adam/kill.rb', line 180 def dropped @dropped end |
#name ⇒ Object
Returns the value of attribute name.
180 181 182 |
# File 'lib/adam/kill.rb', line 180 def name @name end |
#quantity ⇒ Object
Returns the value of attribute quantity.
180 181 182 |
# File 'lib/adam/kill.rb', line 180 def quantity @quantity end |
Instance Method Details
#cargo? ⇒ Boolean
182 183 184 |
# File 'lib/adam/kill.rb', line 182 def cargo? cargo end |
#dropped? ⇒ Boolean
186 187 188 |
# File 'lib/adam/kill.rb', line 186 def dropped? dropped end |