Class: SoapyBing::Soap::Response::GetBulkDownloadStatusResponse
- Defined in:
- lib/soapy_bing/soap/response/get_bulk_download_status_response.rb
Constant Summary collapse
- StatusFailed =
Class.new(StandardError)
Constants included from Payload
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Methods included from Payload
#check_errors_and_extract_payload, #payload, #response
Methods included from Helpers::ClassName
Constructor Details
This class inherits a constructor from SoapyBing::Soap::Response::Base
Instance Method Details
#extract_payload ⇒ Object
8 9 10 11 12 13 |
# File 'lib/soapy_bing/soap/response/get_bulk_download_status_response.rb', line 8 def extract_payload if response['RequestStatus'] == 'Failed' raise StatusFailed, response['Errors'].to_s end response.slice('PercentComplete', 'RequestStatus', 'ResultFileUrl') end |