Class: AlfaInsurance::CreateResponse

Inherits:
CalculateResponse show all
Defined in:
lib/alfa_insurance/create_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

#insurance_idObject



3
4
5
# File 'lib/alfa_insurance/create_response.rb', line 3

def insurance_id
  body[:policy_id].to_i
end