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

- (FactionwideFactionWarParticpant) initialize(elem)

:nodoc:



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

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

Instance Attribute Details

- (Object) pilots (readonly)

Returns the value of attribute pilots



138
139
140
# File 'lib/reve/classes.rb', line 138

def pilots
  @pilots
end

- (Object) systems_controlled (readonly)

Returns the value of attribute systems_controlled



138
139
140
# File 'lib/reve/classes.rb', line 138

def systems_controlled
  @systems_controlled
end