Class: Greeve::Account::AccountStatus

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

Overview

Information about a player’s EVE account like creation time, minutes spent in game etc.

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

#create_dateTime

Returns:

  • (Time)


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

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

#logon_countInteger

Returns:

  • (Integer)


14
# File 'lib/greeve/account/account_status.rb', line 14

attribute :logon_count,   xpath: "eveapi/result/logonCount/?[0]",   type: :integer

#logon_minutesInteger

Returns:

  • (Integer)


15
# File 'lib/greeve/account/account_status.rb', line 15

attribute :logon_minutes, xpath: "eveapi/result/logonMinutes/?[0]", type: :integer

#multi_character_trainingGreeve::Rowset

Parameters:

  • training_end (Time)

Returns:



17
18
19
# File 'lib/greeve/account/account_status.rb', line 17

rowset :multi_character_training, xpath: "eveapi/result/rowset[@name='multiCharacterTraining']" do
  attribute :training_end, xpath: "@trainingEnd", type: :datetime
end

Returns:

  • (Time)


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

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