Class: Greeve::Corporation::Standings

Inherits:
BaseItem
  • Object
show all
Defined in:
lib/greeve/corporation/standings.rb

Overview

Standings that non-player entities have to the corporation.

Attributes collapse

Methods inherited from BaseItem

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

Methods included from Helpers::AttributeToHash

#to_h

Constructor Details

This class inherits a constructor from Greeve::BaseItem

Instance Method Details

#agentsGreeve::Rowset

Parameters:

  • from_id (Integer)
  • from_name (String)
  • standing (BigDecimal)

Returns:



11
12
13
14
15
# File 'lib/greeve/corporation/standings.rb', line 11

rowset :agents, xpath: "eveapi/result/corporationNPCStandings/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

#factionsGreeve::Rowset

Parameters:

  • from_id (Integer)
  • from_name (String)
  • standing (BigDecimal)

Returns:



23
24
25
26
27
# File 'lib/greeve/corporation/standings.rb', line 23

rowset :factions, xpath: "eveapi/result/corporationNPCStandings/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_corporationsGreeve::Rowset

Parameters:

  • from_id (Integer)
  • from_name (String)
  • standing (BigDecimal)

Returns:



17
18
19
20
21
# File 'lib/greeve/corporation/standings.rb', line 17

rowset :npc_corporations, xpath: "eveapi/result/corporationNPCStandings/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