Sha256: 27a245168c71038aab8835bb5fa60678eb6b7d53d61c14b00fce1be75929ec27

Contents?: true

Size: 941 Bytes

Versions: 1

Compression:

Stored size: 941 Bytes

Contents

require_relative "../base_item"

module Greeve
  module Account
    # Information about a player’s EVE account like creation time, minutes spent
    # in game etc.
    #
    # @see https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/account/account_accountstatus.html
    class AccountStatus < Greeve::BaseItem
      endpoint "account/AccountStatus"

      attribute :paid_until,    xpath: "eveapi/result/paidUntil/?[0]",    type: :datetime
      attribute :create_date,   xpath: "eveapi/result/createDate/?[0]",   type: :datetime
      attribute :logon_count,   xpath: "eveapi/result/logonCount/?[0]",   type: :integer
      attribute :logon_minutes, xpath: "eveapi/result/logonMinutes/?[0]", type: :integer

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
greeve-1.0.0 lib/greeve/account/account_status.rb