Class: Reve::Classes::CorporateFactionWarParticpant

Inherits:
FactionWarParticpant show all
Defined in:
lib/reve/classes.rb

Overview

Represents a Corpration’s stats as a FactionWarParticpant. Attributes:

  • (See FactionWarParticpant for more)

  • pilots ( Fixnum ) - Number of pilots (Characters) in the Corporation

  • enlisted_at ( Time ) - When the participant enlisted into the Faction

Instance Attribute Summary collapse

Attributes inherited from FactionWarParticpant

#enlisted_at, #faction_id, #faction_name, #kills_last_week, #kills_total, #kills_yesterday, #victory_points_last_week, #victory_points_total, #victory_points_yesterday

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ CorporateFactionWarParticpant

:nodoc:



126
127
128
129
130
# File 'lib/reve/classes.rb', line 126

def initialize(elem) #:nodoc:
  super(elem)
  @pilots = elem['pilots'].to_i
  @enlisted_at = elem['enlisted'].to_time
end

Instance Attribute Details

#pilotsObject (readonly)

Returns the value of attribute pilots.



125
126
127
# File 'lib/reve/classes.rb', line 125

def pilots
  @pilots
end