Class: Zuora::Calls::QueryMore

Inherits:
Hashie::Dash
  • Object
show all
Defined in:
lib/zuora/calls/query_more.rb

Instance Method Summary collapse

Constructor Details

#initialize(query_locator) ⇒ Zuora::Calls:Query

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.

Parameters:

  • query_locator (String)


10
11
12
# File 'lib/zuora/calls/query_more.rb', line 10

def initialize(query_locator)
  @query_locator = query_locator
end

Instance Method Details

#xml_builderCallable

Returns:

  • (Callable)


15
16
17
18
19
# File 'lib/zuora/calls/query_more.rb', line 15

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