Class: Zuora::Calls::Query
- Inherits:
-
Hashie::Dash
- Object
- Hashie::Dash
- Zuora::Calls::Query
- Defined in:
- lib/zuora/calls/query.rb
Instance Method Summary collapse
- #initialize(select, from = nil, where = nil) ⇒ Zuora::Calls:Query constructor
- #xml_builder ⇒ Callable
Constructor Details
#initialize(select, from = nil, where = nil) ⇒ Zuora::Calls:Query
17 18 19 20 21 22 23 |
# File 'lib/zuora/calls/query.rb', line 17 def initialize(select, from = nil, where = nil) @query_string = if select.is_a? Array query_to_string(select, from, where) else select end end |
Instance Method Details
#xml_builder ⇒ Callable
26 27 28 29 30 |
# File 'lib/zuora/calls/query.rb', line 26 def xml_builder lambda do |builder| builder[:api].query { builder[:api].queryString(@query_string) } end end |