Class: Greeve::Account::APIKeyInfo
- Defined in:
- lib/greeve/account/api_key_info.rb
Overview
Note:
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
Constructor Details
This class inherits a constructor from Greeve::BaseItem
Instance Method Details
#access_mask ⇒ Integer
11 |
# File 'lib/greeve/account/api_key_info.rb', line 11 attribute :access_mask, xpath: "eveapi/result/key/@accessMask", type: :integer |
#characters ⇒ Greeve::Rowset
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 |
#expires ⇒ Time
13 |
# File 'lib/greeve/account/api_key_info.rb', line 13 attribute :expires, xpath: "eveapi/result/key/@expires", type: :datetime |
#type ⇒ String
12 |
# File 'lib/greeve/account/api_key_info.rb', line 12 attribute :type, xpath: "eveapi/result/key/@type", type: :string |