Class: LedgerSync::Ledgers::TestLedger::Client

Inherits:
Object
  • Object
show all
Includes:
Client::Mixin
Defined in:
lib/ledger_sync/test/support/test_ledger/client.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Client::Mixin

included

Constructor Details

#initialize(args = {}) ⇒ Client

Returns a new instance of Client.



11
12
13
# File 'lib/ledger_sync/test/support/test_ledger/client.rb', line 11

def initialize(args = {})
  @api_key = args.fetch(:api_key)
end

Instance Attribute Details

#api_keyObject (readonly)

Returns the value of attribute api_key.



9
10
11
# File 'lib/ledger_sync/test/support/test_ledger/client.rb', line 9

def api_key
  @api_key
end

Class Method Details

.ledger_attributes_to_saveObject



15
16
17
# File 'lib/ledger_sync/test/support/test_ledger/client.rb', line 15

def self.ledger_attributes_to_save
  %i[api_key]
end