Module: LedgerSync::NetSuite::Operation::Mixin::InstanceMethods
- Defined in:
- lib/ledger_sync/netsuite/operation.rb
Instance Method Summary collapse
Instance Method Details
#ledger_id ⇒ Object
17 18 19 |
# File 'lib/ledger_sync/netsuite/operation.rb', line 17 def ledger_id @ledger_id ||= Util::URLHelpers.id_from_url(url: response.headers['Location']) end |
#ledger_resource_path(args = {}) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/ledger_sync/netsuite/operation.rb', line 21 def ledger_resource_path(args = {}) client.ledger_resource_path( { resource: resource }.merge( args.merge( params: request_params.merge( args.fetch(:params, {}) ) ) ) ) end |
#request_params ⇒ Object
13 14 15 |
# File 'lib/ledger_sync/netsuite/operation.rb', line 13 def request_params {} end |