Class: AkamaiApi::ECCU::FindRequest
- Inherits:
-
BaseEditRequest
- Object
- BaseRequest
- BaseEditRequest
- AkamaiApi::ECCU::FindRequest
- Defined in:
- lib/akamai_api/eccu/find_request.rb
Overview
The FindRequest class is used to get the details of an ECCU request.
Instance Attribute Summary
Attributes inherited from BaseEditRequest
Class Method Summary collapse
-
.execute(code, retrieve_content = false) ⇒ FindResponse
Returns the details of an ECCU request.
Instance Method Summary collapse
-
#execute(retrieve_content = false) ⇒ FindResponse
Returns the details of an ECCU request.
-
#request_body(retrieve_content) ⇒ SoapBody
protected
Creates the request body filling it with all necessary arguments.
Methods inherited from BaseEditRequest
#initialize, #with_soap_error_handling
Methods inherited from BaseRequest
#client, #client_call, #with_soap_error_handling
Constructor Details
This class inherits a constructor from AkamaiApi::ECCU::BaseEditRequest
Class Method Details
.execute(code, retrieve_content = false) ⇒ FindResponse
Returns the details of an ECCU request
21 22 23 |
# File 'lib/akamai_api/eccu/find_request.rb', line 21 def self.execute code, retrieve_content = false new(code).execute(retrieve_content) end |
Instance Method Details
#execute(retrieve_content = false) ⇒ FindResponse
Returns the details of an ECCU request
28 29 30 31 32 33 |
# File 'lib/akamai_api/eccu/find_request.rb', line 28 def execute retrieve_content = false with_soap_error_handling do response = client_call :get_info, message: request_body(retrieve_content).to_s FindResponse.new response[:eccu_info] end end |
#request_body(retrieve_content) ⇒ SoapBody (protected)
Creates the request body filling it with all necessary arguments
39 40 41 42 43 |
# File 'lib/akamai_api/eccu/find_request.rb', line 39 def request_body retrieve_content super do |block| block.boolean :retrieveContents, retrieve_content == true end end |