Sha256: b08d06ddf3ffabc6db45361751c679f9779dae24400a5bd59dba94f66ec39430

Contents?: true

Size: 758 Bytes

Versions: 3

Compression:

Stored size: 758 Bytes

Contents

module EveOnline
  module Characters
    # https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/character/char_wallettransactions.html
    class WalletTransactions < BaseXML
      API_ENDPOINT = 'https://api.eveonline.com/char/WalletTransactions.xml.aspx'.freeze

      ACCESS_MASK = 4_194_304

      attr_reader :key_id, :v_code, :character_id # TODO: :account_key

      def initialize(key_id, v_code, character_id) # TODO: account_key
        super()
        @key_id = key_id
        @v_code = v_code
        @character_id = character_id
        # @account_key = account_key TODO: add
      end

      def url
        "#{ API_ENDPOINT }?keyID=#{ key_id }&vCode=#{ v_code }&characterID=#{ character_id }"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
eve_online-0.11.0 lib/eve_online/characters/wallet_transactions.rb
eve_online-0.10.0 lib/eve_online/characters/wallet_transactions.rb
eve_online-0.9.0 lib/eve_online/characters/wallet_transactions.rb