Sha256: 40c2fbc01de9ded374199ba70a2422732f0221ed10f63e9de6603d6ae6c09534
Contents?: true
Size: 664 Bytes
Versions: 2
Compression:
Stored size: 664 Bytes
Contents
# frozen_string_literal: true require_relative '../operation' module LedgerSync module Adaptors module QuickBooksOnline module Operation class Find include QuickBooksOnline::Operation::Mixin private def operate return failure(nil) if resource.ledger_id.nil? response = adaptor.find( resource: quickbooks_online_resource_type, id: resource.ledger_id ) success( resource: ledger_serializer.deserialize(hash: response), response: response ) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-1.1.3 | lib/ledger_sync/adaptors/quickbooks_online/operation/find.rb |
ledger_sync-1.1.2 | lib/ledger_sync/adaptors/quickbooks_online/operation/find.rb |