Sha256: 0ec6ad798185f9faf4fc18b7a059174a97a0dee08b604f7e9337cef217ad8af8

Contents?: true

Size: 1.19 KB

Versions: 5

Compression:

Stored size: 1.19 KB

Contents

# frozen_string_literal: true
class Cognito
  class Client
    class Resource
      class IdentityAssessment < self
        register_type :identity_assessment

        attribute :name
        attribute :phone

        many :identity_record_comparisons
      end # IdentityAssessment

      class IdentityRecordComparison < self
        register_type :identity_record_comparison

        many :name_comparisons
        many :phone_comparisons
        one :identity_record

        attribute :score
      end # IdentityRecordComparison

      class PhoneComparison < self
        register_type :phone_comparison

        attribute :score

        one :source_record
      end # PhoneComparison

      class NameComparison < self
        register_type :name_comparison

        attribute :score

        one :source_record

        class Components
          include Anima.new(:first, :middle, :last), Adamantium

          class Component
            include Anima.new(:source, :input, :score)

            class Name
              include Concord.new(:name), Adamantium
            end # Name
          end # Component
        end # Components
      end # NameComparison
    end # Resource
  end # Client
end # Cognito

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cognito-client-0.5.4 lib/cognito/client/resource/identity_assessment.rb
cognito-client-0.5.3 lib/cognito/client/resource/identity_assessment.rb
cognito-client-0.5.2 lib/cognito/client/resource/identity_assessment.rb
cognito-client-0.5.1 lib/cognito/client/resource/identity_assessment.rb
cognito-client-0.5.0 lib/cognito/client/resource/identity_assessment.rb