Sha256: 482e3590a877267c5666b2c5b94d7e4f5cbcf272f3f1cfcab71aadf22e1ff7d3

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

require_relative "../base_item"

module Greeve
  module Corporation
    # Corporation account balances.
    #
    # @see https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/corporation/corp_accountbalance.html
    class AccountBalance < Greeve::BaseItem
      endpoint "corp/AccountBalance"

      rowset :accounts, xpath: "eveapi/result/rowset[@name='accounts']" do
        attribute :account_id,  xpath: "@accountID",  type: :integer
        attribute :account_key, xpath: "@accountKey", type: :integer
        attribute :balance,     xpath: "@balance",    type: :numeric
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
greeve-1.0.0 lib/greeve/corporation/account_balance.rb