Class: Reve::Classes::EveFactionWarStat
Instance Attribute Summary collapse
-
#faction_participants ⇒ Object
Returns the value of attribute faction_participants.
-
#faction_wars ⇒ Object
Returns the value of attribute faction_wars.
-
#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, wars, participants) ⇒ EveFactionWarStat
constructor
:nodoc:.
Constructor Details
#initialize(elem, wars, participants) ⇒ EveFactionWarStat
:nodoc:
62 63 64 65 66 67 68 69 70 71 |
# File 'lib/reve/classes.rb', line 62 def initialize(elem,wars,participants) #:nodoc: @faction_wars = wars @faction_participants = participants @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
#faction_participants ⇒ Object
Returns the value of attribute faction_participants.
58 59 60 |
# File 'lib/reve/classes.rb', line 58 def faction_participants @faction_participants end |
#faction_wars ⇒ Object
Returns the value of attribute faction_wars.
58 59 60 |
# File 'lib/reve/classes.rb', line 58 def faction_wars @faction_wars end |
#kills_last_week ⇒ Object (readonly)
Returns the value of attribute kills_last_week.
59 60 61 |
# File 'lib/reve/classes.rb', line 59 def kills_last_week @kills_last_week end |
#kills_total ⇒ Object (readonly)
Returns the value of attribute kills_total.
59 60 61 |
# File 'lib/reve/classes.rb', line 59 def kills_total @kills_total end |
#kills_yesterday ⇒ Object (readonly)
Returns the value of attribute kills_yesterday.
59 60 61 |
# File 'lib/reve/classes.rb', line 59 def kills_yesterday @kills_yesterday end |
#victory_points_last_week ⇒ Object (readonly)
Returns the value of attribute victory_points_last_week.
59 60 61 |
# File 'lib/reve/classes.rb', line 59 def victory_points_last_week @victory_points_last_week end |
#victory_points_total ⇒ Object (readonly)
Returns the value of attribute victory_points_total.
59 60 61 |
# File 'lib/reve/classes.rb', line 59 def victory_points_total @victory_points_total end |
#victory_points_yesterday ⇒ Object (readonly)
Returns the value of attribute victory_points_yesterday.
59 60 61 |
# File 'lib/reve/classes.rb', line 59 def victory_points_yesterday @victory_points_yesterday end |