Sha256: d50ffe862473fa6304ea01b5608af54a0280d361155aea07b7fe70ba7c09faae

Contents?: true

Size: 203 Bytes

Versions: 11

Compression:

Stored size: 203 Bytes

Contents

module AlfaInsurance
  class ConfirmResponse < CalculateResponse
    def insurance_id
      body[:full_number].to_i
    end

    def document_url
      body.dig(:policy_document, :url)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
alfa_insurance-0.2.1 lib/alfa_insurance/confirm_response.rb
alfa_insurance-0.2.0 lib/alfa_insurance/confirm_response.rb
alfa_insurance-0.1.8 lib/alfa_insurance/confirm_response.rb
alfa_insurance-0.1.7 lib/alfa_insurance/confirm_response.rb
alfa_insurance-0.1.6 lib/alfa_insurance/confirm_response.rb
alfa_insurance-0.1.5 lib/alfa_insurance/confirm_response.rb
alfa_insurance-0.1.4 lib/alfa_insurance/confirm_response.rb
alfa_insurance-0.1.3 lib/alfa_insurance/confirm_response.rb
alfa_insurance-0.1.2 lib/alfa_insurance/confirm_response.rb
alfa_insurance-0.1.1 lib/alfa_insurance/confirm_response.rb
alfa_insurance-0.1.0 lib/alfa_insurance/confirm_response.rb