Sha256: 67d3fe0b023545ee2b7fc4114243e27682b4d83baad5bcc6185acfccc7827aa0

Contents?: true

Size: 749 Bytes

Versions: 1

Compression:

Stored size: 749 Bytes

Contents

# frozen_string_literal: true

module Zuora
  module Calls
    class QueryMore < Hashie::Dash
      # After executing a query, often time a query_locator is returned when
      # there are more records than Zuora can respond with in a single response.
      # The default batch size is 2000.  You can use a combination of query and
      # query_more calls to get large quantities of data.
      # @param [String] query_locator
      # @return [Zuora::Calls:Query]
      def initialize(query_locator)
        @query_locator = query_locator
      end

      # @return [Callable]
      def xml_builder
        lambda do |builder|
          builder[:api].queryMore { builder[:api].queryLocator(@query_locator) }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zuora-ruby-0.7.0 lib/zuora/calls/query_more.rb