Class: Reve::Classes::PersonalFactionWarParticpant

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

Overview

Represents a Character’s stats as a FactionWarParticpant. Attributes:

  • (See FactionWarParticpant for more)

  • current_rank ( Fixnum ) - Current Rank

  • highest_rank ( Fixnum ) - Highest Rank

  • enlisted_at ( Time ) - When the participant enlisted into the Faction

Instance Attribute Summary collapse

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

Constructor Details

#initialize(elem) ⇒ PersonalFactionWarParticpant

:nodoc:



111
112
113
114
115
116
# File 'lib/reve/classes.rb', line 111

def initialize(elem) #:nodoc:
  super(elem)
  @current_rank = elem['currentRank'].to_i
  @highest_rank = elem['highestRank'].to_i
  @enlisted_at = elem['enlisted'].to_time
end

Instance Attribute Details

#current_rankObject (readonly)

Returns the value of attribute current_rank.



110
111
112
# File 'lib/reve/classes.rb', line 110

def current_rank
  @current_rank
end

#highest_rankObject (readonly)

Returns the value of attribute highest_rank.



110
111
112
# File 'lib/reve/classes.rb', line 110

def highest_rank
  @highest_rank
end