Sha256: df5b29eafdf3388d6adf17262f4ed5fcc4bfa89d6393c3cd76d7eae49056f3a8

Contents?: true

Size: 428 Bytes

Versions: 48

Compression:

Stored size: 428 Bytes

Contents

require_relative 'resource_config'

module Medivo
  class InsuranceOrder < Order
    set_element_name 'customer'
    set_collection_name 'customers'

    validates_with Medivo::ArrayValidator, :fields => [:diagnosis_code]
    validates_with PrimaryInsurance

    # when getting the insurance info from medivo labs
    def insurance
      @insurance ||= try(:insurance_information).try(:primary_insurance_info)
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
medivo-0.2.0 app/models/medivo/insurance_order.rb
medivo-0.1.25 app/models/medivo/insurance_order.rb
medivo-0.1.24 app/models/medivo/insurance_order.rb
medivo-0.1.23 app/models/medivo/insurance_order.rb
medivo-0.1.22 app/models/medivo/insurance_order.rb
medivo-0.1.21 app/models/medivo/insurance_order.rb
medivo-0.1.20 app/models/medivo/insurance_order.rb
medivo-0.1.19 app/models/medivo/insurance_order.rb
medivo-0.1.18 app/models/medivo/insurance_order.rb
medivo-0.1.17 app/models/medivo/insurance_order.rb
medivo-0.1.16 app/models/medivo/insurance_order.rb
medivo-0.1.15 app/models/medivo/insurance_order.rb
medivo-0.1.14 app/models/medivo/insurance_order.rb
medivo-0.1.13 app/models/medivo/insurance_order.rb
medivo-0.1.12 app/models/medivo/insurance_order.rb
medivo-0.1.11 app/models/medivo/insurance_order.rb
medivo-0.1.10 app/models/medivo/insurance_order.rb
medivo-0.1.9 app/models/medivo/insurance_order.rb
medivo-0.1.8 app/models/medivo/insurance_order.rb
medivo-0.1.7 app/models/medivo/insurance_order.rb