Sha256: a486d838fe6165188e49d570c16f2019ce1af5445d9d98383cbc29c0d5066533

Contents?: true

Size: 650 Bytes

Versions: 3

Compression:

Stored size: 650 Bytes

Contents

# frozen_string_literal: true
require_relative '../searcher'

module LedgerSync
  module Adaptors
    module QuickBooksOnline
      module Deposit
        class Searcher < QuickBooksOnline::Searcher
          def resources
            @resources ||= begin
              adaptor
                .query(
                  resource: 'deposit',
                  limit: limit,
                  offset: offset
                )
                .map do |c|
                  LedgerSync::Deposit.new(
                    ledger_id: c.fetch('Id')
                  )
                end
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ledger_sync-1.1.3 lib/ledger_sync/adaptors/quickbooks_online/deposit/searcher.rb
ledger_sync-1.1.2 lib/ledger_sync/adaptors/quickbooks_online/deposit/searcher.rb
ledger_sync-1.1.1 lib/ledger_sync/adaptors/quickbooks_online/deposit/searcher.rb