Class: Reve::Classes::FactionwideFactionWarParticpant
- Inherits:
-
FactionWarParticpant
- Object
- FactionWarParticpant
- Reve::Classes::FactionwideFactionWarParticpant
- 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
-
#pilots ⇒ Object
readonly
Returns the value of attribute pilots.
-
#systems_controlled ⇒ Object
readonly
Returns the value of attribute systems_controlled.
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
-
#initialize(elem) ⇒ FactionwideFactionWarParticpant
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ FactionwideFactionWarParticpant
: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
#pilots ⇒ Object (readonly)
Returns the value of attribute pilots.
138 139 140 |
# File 'lib/reve/classes.rb', line 138 def pilots @pilots end |
#systems_controlled ⇒ Object (readonly)
Returns the value of attribute systems_controlled.
138 139 140 |
# File 'lib/reve/classes.rb', line 138 def systems_controlled @systems_controlled end |