Class: Reve::Classes::FactionWarParticpant

Inherits:
Object
  • Object
show all
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 )

Instance Attribute Summary collapse

Instance Method Summary collapse

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