Class Reve::Classes::KillLoss
In: lib/reve/classes.rb
Parent: Object

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

Methods

new  

Attributes

contained_losses  [RW] 
flag  [R] 
quantity_destroyed  [R] 
quantity_dropped  [R] 
type_id  [R] 

Public Class methods

[Source]

     # File lib/reve/classes.rb, line 348
348:       def initialize(elem)
349:         @type_id = elem['typeID'].to_i
350:         @flag = elem['flag'].to_i
351:         @quantity_dropped = elem['qtyDropped'].to_i
352:         @quantity_destroyed = elem['qtyDestroyed'].to_i
353:         @contained_losses = []        
354:       end

[Validate]