Class: Greeve::Character::WalletJournal
- Defined in:
- lib/greeve/character/wallet_journal.rb
Overview
Character wallet journal.
Instance Method Summary collapse
-
#initialize(character_id, 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(character_id, opts = {}) ⇒ WalletJournal
Returns a new instance of WalletJournal.
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/greeve/character/wallet_journal.rb', line 37 def initialize(character_id, opts = {}) from_id = opts.delete(:from_id) row_count = opts.delete(:row_count) opts[:query_params] = { "characterID" => character_id } opts[:query_params]["fromID"] = from_id if from_id opts[:query_params]["rowCount"] = row_count if row_count super(opts) end |