Class: Greeve::Character::FacWarStats
- Inherits:
-
BaseItem
- Object
- BaseItem
- Greeve::Character::FacWarStats
show all
- Defined in:
- lib/greeve/character/fac_war_stats.rb
Overview
Faction warfare information for characters enrolled in faction warfare.
Instance Method Summary
collapse
Methods inherited from BaseItem
attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s
#to_h
Constructor Details
#initialize(character_id, opts = {}) ⇒ FacWarStats
Returns a new instance of FacWarStats
24
25
26
27
|
# File 'lib/greeve/character/fac_war_stats.rb', line 24
def initialize(character_id, opts = {})
opts[:query_params] = { "characterID" => character_id }
super(opts)
end
|
Instance Method Details
#current_rank ⇒ Integer
14
|
# File 'lib/greeve/character/fac_war_stats.rb', line 14
attribute :current_rank, xpath: "eveapi/result/currentRank/?[0]", type: :integer
|
#enlisted ⇒ Time
13
|
# File 'lib/greeve/character/fac_war_stats.rb', line 13
attribute :enlisted, xpath: "eveapi/result/enlisted/?[0]", type: :datetime
|
#faction_id ⇒ Integer
11
|
# File 'lib/greeve/character/fac_war_stats.rb', line 11
attribute :faction_id, xpath: "eveapi/result/factionID/?[0]", type: :integer
|
#faction_name ⇒ String
12
|
# File 'lib/greeve/character/fac_war_stats.rb', line 12
attribute :faction_name, xpath: "eveapi/result/factionName/?[0]", type: :string
|
#highest_rank ⇒ Integer
15
|
# File 'lib/greeve/character/fac_war_stats.rb', line 15
attribute :highest_rank, xpath: "eveapi/result/highestRank/?[0]", type: :integer
|
#kills_last_week ⇒ Integer
17
|
# File 'lib/greeve/character/fac_war_stats.rb', line 17
attribute :kills_last_week, xpath: "eveapi/result/killsLastWeek/?[0]", type: :integer
|
#kills_total ⇒ Integer
18
|
# File 'lib/greeve/character/fac_war_stats.rb', line 18
attribute :kills_total, xpath: "eveapi/result/killsTotal/?[0]", type: :integer
|
#kills_yesterday ⇒ Integer
16
|
# File 'lib/greeve/character/fac_war_stats.rb', line 16
attribute :kills_yesterday, xpath: "eveapi/result/killsYesterday/?[0]", type: :integer
|
#victory_points_last_week ⇒ Integer
20
|
# File 'lib/greeve/character/fac_war_stats.rb', line 20
attribute :victory_points_last_week, xpath: "eveapi/result/victoryPointsLastWeek/?[0]", type: :integer
|
#victory_points_total ⇒ Integer
21
|
# File 'lib/greeve/character/fac_war_stats.rb', line 21
attribute :victory_points_total, xpath: "eveapi/result/victoryPointsTotal/?[0]", type: :integer
|
#victory_points_yesterday ⇒ Integer
19
|
# File 'lib/greeve/character/fac_war_stats.rb', line 19
attribute :victory_points_yesterday, xpath: "eveapi/result/victoryPointsYesterday/?[0]", type: :integer
|