Sha256: 2609fe72c66c9251d9b49efdf2e881ff2d45a50041b5aa26cc682f08cebef578
Contents?: true
Size: 920 Bytes
Versions: 2
Compression:
Stored size: 920 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterWalletJournal < Base API_PATH = '/v5/characters/%<character_id>s/wallet/journal/?datasource=%<datasource>s&page=%<page>s' attr_reader :character_id, :page def initialize(options) super @character_id = options.fetch(:character_id) @page = options.fetch(:page, 1) end def wallet_journal_entries @wallet_journal_entries ||= begin output = [] response.each do |wallet_journal_entry| output << Models::WalletJournalEntry.new(wallet_journal_entry) end output end end def scope 'esi-wallet.read_character_wallet.v1' end def url format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource, page: page) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.25.0 | lib/eve_online/esi/character_wallet_journal.rb |
eve_online-0.24.0 | lib/eve_online/esi/character_wallet_journal.rb |