Class: SoapyBing::Soap::Response::GetBulkDownloadStatusResponse

Inherits:
Base
  • Object
show all
Defined in:
lib/soapy_bing/soap/response/get_bulk_download_status_response.rb

Constant Summary collapse

StatusFailed =
Class.new(StandardError)

Constants included from Payload

Payload::Fault

Instance Attribute Summary

Attributes inherited from Base

#body

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Payload

#check_errors_and_extract_payload, #payload, #response

Methods included from Helpers::ClassName

#class_name

Constructor Details

This class inherits a constructor from SoapyBing::Soap::Response::Base

Instance Method Details

#extract_payloadObject



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