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