Class: LedgerSync::Ledgers::TestLedger::Client
- Inherits:
-
Object
- Object
- LedgerSync::Ledgers::TestLedger::Client
- Includes:
- Client::Mixin
- Defined in:
- lib/ledger_sync/test/support/test_ledger/client.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Client::Mixin
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_key ⇒ Object (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_save ⇒ Object
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 |