Class: Reve::Classes::FactionWarParticpant
- Defined in:
- lib/reve/classes.rb
Overview
Maps a participant in a FactionWar. Can be a:
-
PersonalFactionWarParticpant
-
CorporateFactionWarParticpant
-
FactionwideFactionWarParticpant
Attributes:
-
faction_id ( Fixnum ) - ID of the Faction to which the participant belongs
-
faction_name ( String ) - Name of the Faction
-
kills_yesterday ( Fixnum )
-
kills_last_week ( Fixnum )
-
kills_total ( Fixnum )
-
victory_points_yesterday ( Fixnum )
-
victory_points_last_week ( Fixnum )
-
victory_points_total ( Fixnum )
Direct Known Subclasses
CorporateFactionWarParticpant, FactionwideFactionWarParticpant, PersonalFactionWarParticpant
Instance Attribute Summary collapse
-
#enlisted_at ⇒ Object
readonly
Returns the value of attribute enlisted_at.
-
#faction_id ⇒ Object
readonly
Returns the value of attribute faction_id.
-
#faction_name ⇒ Object
readonly
Returns the value of attribute faction_name.
-
#kills_last_week ⇒ Object
readonly
Returns the value of attribute kills_last_week.
-
#kills_total ⇒ Object
readonly
Returns the value of attribute kills_total.
-
#kills_yesterday ⇒ Object
readonly
Returns the value of attribute kills_yesterday.
-
#victory_points_last_week ⇒ Object
readonly
Returns the value of attribute victory_points_last_week.
-
#victory_points_total ⇒ Object
readonly
Returns the value of attribute victory_points_total.
-
#victory_points_yesterday ⇒ Object
readonly
Returns the value of attribute victory_points_yesterday.
Instance Method Summary collapse
-
#initialize(elem) ⇒ FactionWarParticpant
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ FactionWarParticpant
:nodoc:
91 92 93 94 95 96 97 98 99 100 |
# File 'lib/reve/classes.rb', line 91 def initialize(elem) #:nodoc: @faction_id = elem['factionID'].to_i @faction_name = elem['factionName'] @kills_yesterday = elem['killsYesterday'].to_i @kills_last_week = elem['killsLastWeek'].to_i @kills_total = elem['killsTotal'].to_i @victory_points_yesterday = elem['victoryPointsYesterday'].to_i @victory_points_last_week = elem['victoryPointsLastWeek'].to_i @victory_points_total = elem['victoryPointsTotal'].to_i end |
Instance Attribute Details
#enlisted_at ⇒ Object (readonly)
Returns the value of attribute enlisted_at.
88 89 90 |
# File 'lib/reve/classes.rb', line 88 def enlisted_at @enlisted_at end |
#faction_id ⇒ Object (readonly)
Returns the value of attribute faction_id.
88 89 90 |
# File 'lib/reve/classes.rb', line 88 def faction_id @faction_id end |
#faction_name ⇒ Object (readonly)
Returns the value of attribute faction_name.
88 89 90 |
# File 'lib/reve/classes.rb', line 88 def faction_name @faction_name end |
#kills_last_week ⇒ Object (readonly)
Returns the value of attribute kills_last_week.
88 89 90 |
# File 'lib/reve/classes.rb', line 88 def kills_last_week @kills_last_week end |
#kills_total ⇒ Object (readonly)
Returns the value of attribute kills_total.
88 89 90 |
# File 'lib/reve/classes.rb', line 88 def kills_total @kills_total end |
#kills_yesterday ⇒ Object (readonly)
Returns the value of attribute kills_yesterday.
88 89 90 |
# File 'lib/reve/classes.rb', line 88 def kills_yesterday @kills_yesterday end |
#victory_points_last_week ⇒ Object (readonly)
Returns the value of attribute victory_points_last_week.
88 89 90 |
# File 'lib/reve/classes.rb', line 88 def victory_points_last_week @victory_points_last_week end |
#victory_points_total ⇒ Object (readonly)
Returns the value of attribute victory_points_total.
88 89 90 |
# File 'lib/reve/classes.rb', line 88 def victory_points_total @victory_points_total end |
#victory_points_yesterday ⇒ Object (readonly)
Returns the value of attribute victory_points_yesterday.
88 89 90 |
# File 'lib/reve/classes.rb', line 88 def victory_points_yesterday @victory_points_yesterday end |