Class: EveOnline::ESI::CharacterWalletTransactions
- Defined in:
- lib/eve_online/esi/character_wallet_transactions.rb
Constant Summary collapse
- API_PATH =
"/v1/characters/%<character_id>s/wallet/transactions/"
Constants inherited from Base
Instance Attribute Summary collapse
-
#character_id ⇒ Object
readonly
Returns the value of attribute character_id.
-
#from_id ⇒ Object
readonly
Returns the value of attribute from_id.
Attributes inherited from Base
#_open_timeout, #_read_timeout, #_write_timeout, #adapter, #language, #middlewares, #token
Instance Method Summary collapse
- #additional_query_params ⇒ Object
-
#initialize(options) ⇒ CharacterWalletTransactions
constructor
A new instance of CharacterWalletTransactions.
- #path ⇒ Object
- #scope ⇒ Object
- #wallet_transactions ⇒ Object
Methods inherited from Base
#add_middleware, #base_query_params, #connection, #error_limit_remain, #error_limit_reset, #http_method, #open_timeout, #open_timeout=, #page, #query, #read_timeout, #read_timeout=, #request_id, #resource, #response, #total_pages, #uri, #url, #user_agent, #write_timeout, #write_timeout=
Constructor Details
#initialize(options) ⇒ CharacterWalletTransactions
Returns a new instance of CharacterWalletTransactions.
10 11 12 13 14 15 |
# File 'lib/eve_online/esi/character_wallet_transactions.rb', line 10 def initialize() super @character_id = .fetch(:character_id) @from_id = .fetch(:from_id, nil) end |
Instance Attribute Details
#character_id ⇒ Object (readonly)
Returns the value of attribute character_id.
8 9 10 |
# File 'lib/eve_online/esi/character_wallet_transactions.rb', line 8 def character_id @character_id end |
#from_id ⇒ Object (readonly)
Returns the value of attribute from_id.
8 9 10 |
# File 'lib/eve_online/esi/character_wallet_transactions.rb', line 8 def from_id @from_id end |
Instance Method Details
#additional_query_params ⇒ Object
32 33 34 |
# File 'lib/eve_online/esi/character_wallet_transactions.rb', line 32 def additional_query_params [:from_id] end |
#path ⇒ Object
36 37 38 |
# File 'lib/eve_online/esi/character_wallet_transactions.rb', line 36 def path format(API_PATH, character_id: character_id) end |
#scope ⇒ Object
28 29 30 |
# File 'lib/eve_online/esi/character_wallet_transactions.rb', line 28 def scope "esi-wallet.read_character_wallet.v1" end |
#wallet_transactions ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/eve_online/esi/character_wallet_transactions.rb', line 17 def wallet_transactions @wallet_transactions ||= begin output = [] response.each do |wallet_transaction| output << Models::WalletTransaction.new(wallet_transaction) end output end end |