Class: Greeve::Character::Standings
- Defined in:
- lib/greeve/character/standings.rb
Overview
Note:
Character standings (does not take character skills into account).
Attributes collapse
Instance Method Summary collapse
-
#initialize(character_id, opts = {}) ⇒ Standings
constructor
A new instance of Standings.
Methods inherited from BaseItem
attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s
Methods included from Helpers::AttributeToHash
Constructor Details
#initialize(character_id, opts = {}) ⇒ Standings
Returns a new instance of Standings
30 31 32 33 |
# File 'lib/greeve/character/standings.rb', line 30 def initialize(character_id, opts = {}) opts[:query_params] = { "characterID" => character_id } super(opts) end |
Instance Method Details
#agents ⇒ Greeve::Rowset
11 12 13 14 15 |
# File 'lib/greeve/character/standings.rb', line 11 rowset :agents, xpath: "eveapi/result/characterNPCStandings/rowset[@name='agents']" do attribute :from_id, xpath: "@fromID", type: :integer attribute :from_name, xpath: "@fromName", type: :string attribute :standing, xpath: "@standing", type: :numeric end |
#factions ⇒ Greeve::Rowset
23 24 25 26 27 |
# File 'lib/greeve/character/standings.rb', line 23 rowset :factions, xpath: "eveapi/result/characterNPCStandings/rowset[@name='factions']" do attribute :from_id, xpath: "@fromID", type: :integer attribute :from_name, xpath: "@fromName", type: :string attribute :standing, xpath: "@standing", type: :numeric end |
#npc_corporations ⇒ Greeve::Rowset
17 18 19 20 21 |
# File 'lib/greeve/character/standings.rb', line 17 rowset :npc_corporations, xpath: "eveapi/result/characterNPCStandings/rowset[@name='NPCCorporations']" do attribute :from_id, xpath: "@fromID", type: :integer attribute :from_name, xpath: "@fromName", type: :string attribute :standing, xpath: "@standing", type: :numeric end |