Class: Reve::Classes::KillLoss
Overview
A model to represent losses from being killed. Attributes
-
type_id ( Fixnum ) - Type ID of the KillLoss. (Refer to CCP database dump invtypes)
-
flag ( Fixnum ) - A flag to denoe some special qualities of the KillLoss such as where it was mounted or if it was in a container. Refer to wiki.eve-dev.net/API_Inventory_Flags
-
quantity_dropped ( Fixnum ) - The number of
type_id
that were dropped for looting - e.g., not destroyed. -
quantity_destroyed ( Fixnum ) - The number of
type_id
that were destroyed in the Kill. -
contained_losses ( [KillLoss] ) - If the KillLoss was a container (refer to
type_id
) then this array will be populated with a list of KillLoss objects that were inside the container.
See Also: Kill, KillAttacker, KillVictim, Reve::API#personal_kills, Reve::API#corporate_kills
Instance Attribute Summary collapse
-
#contained_losses ⇒ Object
Returns the value of attribute contained_losses.
-
#flag ⇒ Object
readonly
Returns the value of attribute flag.
-
#quantity_destroyed ⇒ Object
readonly
Returns the value of attribute quantity_destroyed.
-
#quantity_dropped ⇒ Object
readonly
Returns the value of attribute quantity_dropped.
-
#type_id ⇒ Object
readonly
Returns the value of attribute type_id.
Instance Method Summary collapse
-
#initialize(elem) ⇒ KillLoss
constructor
A new instance of KillLoss.
Constructor Details
#initialize(elem) ⇒ KillLoss
Returns a new instance of KillLoss.
365 366 367 368 369 370 371 |
# File 'lib/reve/classes.rb', line 365 def initialize(elem) @type_id = elem['typeID'].to_i @flag = elem['flag'].to_i @quantity_dropped = elem['qtyDropped'].to_i @quantity_destroyed = elem['qtyDestroyed'].to_i @contained_losses = [] end |
Instance Attribute Details
#contained_losses ⇒ Object
Returns the value of attribute contained_losses.
364 365 366 |
# File 'lib/reve/classes.rb', line 364 def contained_losses @contained_losses end |
#flag ⇒ Object (readonly)
Returns the value of attribute flag.
363 364 365 |
# File 'lib/reve/classes.rb', line 363 def flag @flag end |
#quantity_destroyed ⇒ Object (readonly)
Returns the value of attribute quantity_destroyed.
363 364 365 |
# File 'lib/reve/classes.rb', line 363 def quantity_destroyed @quantity_destroyed end |
#quantity_dropped ⇒ Object (readonly)
Returns the value of attribute quantity_dropped.
363 364 365 |
# File 'lib/reve/classes.rb', line 363 def quantity_dropped @quantity_dropped end |
#type_id ⇒ Object (readonly)
Returns the value of attribute type_id.
363 364 365 |
# File 'lib/reve/classes.rb', line 363 def type_id @type_id end |