Class: AlfaInsurance::ConfirmResponse
- Inherits:
-
CalculateResponse
- Object
- Response
- CalculateResponse
- AlfaInsurance::ConfirmResponse
- Defined in:
- lib/alfa_insurance/confirm_response.rb
Instance Method Summary collapse
Methods inherited from CalculateResponse
#cost, #risk_type, #risk_types, #risk_value, #risk_values
Methods inherited from Response
#body, #error_code, #error_description, #initialize, #success?
Constructor Details
This class inherits a constructor from AlfaInsurance::Response
Instance Method Details
#document_url ⇒ Object
7 8 9 |
# File 'lib/alfa_insurance/confirm_response.rb', line 7 def document_url body.dig(:policy_document, :url) end |
#insurance_id ⇒ Object
3 4 5 |
# File 'lib/alfa_insurance/confirm_response.rb', line 3 def insurance_id body[:full_number].to_i end |