Class: Reve::Classes::EveFactionWarStat

Inherits:
Object
  • Object
show all
Defined in:
lib/reve/classes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_participantsObject

Returns the value of attribute faction_participants.



58
59
60
# File 'lib/reve/classes.rb', line 58

def faction_participants
  @faction_participants
end

#faction_warsObject

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_weekObject (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_totalObject (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_yesterdayObject (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_weekObject (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_totalObject (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_yesterdayObject (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