Class: Greeve::Account::APIKeyInfo

Inherits:
BaseItem
  • Object
show all
Defined in:
lib/greeve/account/api_key_info.rb

Overview

Represents the access rights of an API key.

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

#access_maskInteger

Returns:

  • (Integer)


11
# File 'lib/greeve/account/api_key_info.rb', line 11

attribute :access_mask, xpath: "eveapi/result/key/@accessMask", type: :integer

#charactersGreeve::Rowset

Parameters:

  • character_id (Integer)
  • character_name (String)
  • corporation_id (Integer)
  • corporation_name (String)
  • alliance_id (Integer)
  • alliance_name (String)
  • faction_id (Integer)
  • faction_name (String)

Returns:



15
16
17
18
19
20
21
22
23
24
# File 'lib/greeve/account/api_key_info.rb', line 15

rowset :characters, xpath: "eveapi/result/key/rowset[@name='characters']" do
  attribute :character_id,     xpath: "@characterID",     type: :integer
  attribute :character_name,   xpath: "@characterName",   type: :string
  attribute :corporation_id,   xpath: "@corporationID",   type: :integer
  attribute :corporation_name, xpath: "@corporationName", type: :string
  attribute :alliance_id,      xpath: "@allianceID",      type: :integer
  attribute :alliance_name,    xpath: "@allianceName",    type: :string
  attribute :faction_id,       xpath: "@factionID",       type: :integer
  attribute :faction_name,     xpath: "@factionName",     type: :string
end

#expiresTime

Returns:

  • (Time)


13
# File 'lib/greeve/account/api_key_info.rb', line 13

attribute :expires,     xpath: "eveapi/result/key/@expires",    type: :datetime

#typeString

Returns:

  • (String)


12
# File 'lib/greeve/account/api_key_info.rb', line 12

attribute :type,        xpath: "eveapi/result/key/@type",       type: :string