Sha256: 14130b3773d165cc70cfe1925933373232a8418741a0c386c6f73a6de3623945

Contents?: true

Size: 666 Bytes

Versions: 3

Compression:

Stored size: 666 Bytes

Contents

# frozen_string_literal: true
require_relative '../searcher'

module LedgerSync
  module Adaptors
    module QuickBooksOnline
      module JournalEntry
        class Searcher < QuickBooksOnline::Searcher
          def resources
            @resources ||= begin
              adaptor
                .query(
                  resource: 'journal_entry',
                  limit: limit,
                  offset: offset
                )
                .map do |c|
                  LedgerSync::JournalEntry.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/journal_entry/searcher.rb
ledger_sync-1.1.2 lib/ledger_sync/adaptors/quickbooks_online/journal_entry/searcher.rb
ledger_sync-1.1.1 lib/ledger_sync/adaptors/quickbooks_online/journal_entry/searcher.rb