Method: ActiveShipping::Correios::CorreiosResponse#rate_response

Defined in:
lib/active_shipping/carriers/correios.rb

#rate_responseObject



168
169
170
171
172
173
# File 'lib/active_shipping/carriers/correios.rb', line 168

def rate_response
  @rates = rates
  CorreiosRateResponse.new(true, nil, params_options, response_options)
rescue => error
  CorreiosRateResponse.new(false, error.message, {}, response_options)
end