Sha256: 69b31cf823b60ddb8ea1669a0997a9079de050a4d673973f09a5ab62f9b1e762

Contents?: true

Size: 718 Bytes

Versions: 2

Compression:

Stored size: 718 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
zuora-ruby-0.6.0 lib/zuora/calls/query_more.rb
zuora-ruby-0.5.0 lib/zuora/calls/query_more.rb