Class: CompaniesHouseGateway::Checks::Document
- Inherits:
-
Object
- Object
- CompaniesHouseGateway::Checks::Document
- Includes:
- Check
- Defined in:
- lib/companies_house_gateway/checks/document.rb
Instance Method Summary collapse
-
#response_body(response) ⇒ Object
Override response_body to include file URL details.
Methods included from Check
included, #initialize, #perform
Instance Method Details
#response_body(response) ⇒ Object
Override response_body to include file URL details
11 12 13 14 15 16 17 18 19 |
# File 'lib/companies_house_gateway/checks/document.rb', line 11 def response_body(response) body = response["GovTalkMessage"]["Body"]["Document"] body["URL"] = response.fetch("GovTalkMessage"). fetch("Header"). fetch("MessageDetails"). fetch("ResponseEndPoint"). fetch("__content__") body end |