Class: Greeve::Character::FacWarStats

Inherits:
BaseItem
  • Object
show all
Defined in:
lib/greeve/character/fac_war_stats.rb

Overview

Faction warfare information for characters enrolled in faction warfare.

Attributes collapse

Instance Method Summary collapse

Methods inherited from BaseItem

attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s

Methods included from Helpers::AttributeToHash

#to_h

Constructor Details

#initialize(character_id, opts = {}) ⇒ FacWarStats

Returns a new instance of FacWarStats

Parameters:

  • character_id (Integer)

    EVE character ID



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_rankInteger

Returns:

  • (Integer)


14
# File 'lib/greeve/character/fac_war_stats.rb', line 14

attribute :current_rank,             xpath: "eveapi/result/currentRank/?[0]",            type: :integer

#enlistedTime

Returns:

  • (Time)


13
# File 'lib/greeve/character/fac_war_stats.rb', line 13

attribute :enlisted,                 xpath: "eveapi/result/enlisted/?[0]",               type: :datetime

#faction_idInteger

Returns:

  • (Integer)


11
# File 'lib/greeve/character/fac_war_stats.rb', line 11

attribute :faction_id,               xpath: "eveapi/result/factionID/?[0]",              type: :integer

#faction_nameString

Returns:

  • (String)


12
# File 'lib/greeve/character/fac_war_stats.rb', line 12

attribute :faction_name,             xpath: "eveapi/result/factionName/?[0]",            type: :string

#highest_rankInteger

Returns:

  • (Integer)


15
# File 'lib/greeve/character/fac_war_stats.rb', line 15

attribute :highest_rank,             xpath: "eveapi/result/highestRank/?[0]",            type: :integer

#kills_last_weekInteger

Returns:

  • (Integer)


17
# File 'lib/greeve/character/fac_war_stats.rb', line 17

attribute :kills_last_week,          xpath: "eveapi/result/killsLastWeek/?[0]",          type: :integer

#kills_totalInteger

Returns:

  • (Integer)


18
# File 'lib/greeve/character/fac_war_stats.rb', line 18

attribute :kills_total,              xpath: "eveapi/result/killsTotal/?[0]",             type: :integer

#kills_yesterdayInteger

Returns:

  • (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_weekInteger

Returns:

  • (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_totalInteger

Returns:

  • (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_yesterdayInteger

Returns:

  • (Integer)


19
# File 'lib/greeve/character/fac_war_stats.rb', line 19

attribute :victory_points_yesterday, xpath: "eveapi/result/victoryPointsYesterday/?[0]", type: :integer