Class: Greeve::Corporation::WalletJournal
- Defined in:
- lib/greeve/corporation/wallet_journal.rb
Overview
Corporation wallet journal.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ WalletJournal
constructor
A new instance of WalletJournal.
Methods inherited from BaseItem
attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s
Methods included from Helpers::AttributeToHash
Constructor Details
#initialize(opts = {}) ⇒ WalletJournal
Returns a new instance of WalletJournal.
34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/greeve/corporation/wallet_journal.rb', line 34 def initialize(opts = {}) account_key = opts[:account_key] from_id = opts[:from_id] row_count = opts[:row_count] opts[:query_params] = {} opts[:query_params]["accountKey"] = account_key if account_key opts[:query_params]["fromID"] = from_id if from_id opts[:query_params]["rowCount"] = row_count if row_count super(opts) end |