Class: Reve::Classes::FactionwideFactionWarParticpant

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

Overview

Represents an entire Faction's stats as a FactionWarParticpant. Attributes:

  • (See FactionWarParticpant for more)

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

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) ⇒ FactionwideFactionWarParticpant

:nodoc:



141
142
143
144
145
# File 'lib/reve/classes.rb', line 141

def initialize(elem) #:nodoc:
  super(elem)
  @pilots = elem['pilots'].to_i
  @systems_controlled = elem['systemsControlled'].to_i
end

Instance Attribute Details

#pilotsObject (readonly)

Returns the value of attribute pilots



140
141
142
# File 'lib/reve/classes.rb', line 140

def pilots
  @pilots
end

#systems_controlledObject (readonly)

Returns the value of attribute systems_controlled



140
141
142
# File 'lib/reve/classes.rb', line 140

def systems_controlled
  @systems_controlled
end