Class: Restforce::Bulk::Parser::Xml
- Inherits:
-
Object
- Object
- Restforce::Bulk::Parser::Xml
- Defined in:
- lib/restforce/bulk/parser/xml.rb
Instance Method Summary collapse
Instance Method Details
#batches(data) ⇒ Object
5 6 7 8 9 |
# File 'lib/restforce/bulk/parser/xml.rb', line 5 def batches(data) parsed_data = Restforce::Mash.new(::MultiXml.parse(data)) wrap_in_array(parsed_data.batchInfoList.batchInfo) end |
#content_on(data) ⇒ Object
19 20 21 |
# File 'lib/restforce/bulk/parser/xml.rb', line 19 def content_on(data) data.queryResult end |
#results_on(data) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/restforce/bulk/parser/xml.rb', line 11 def results_on(data) if data.results wrap_in_array(data.results.result) else [{ id: data.result_list.result }] end end |