Sha256: 537bf3752db4cf6b63f56bf2bedc551fcaf8467ade114f5c04b5df1c49692e6c

Contents?: true

Size: 1.27 KB

Versions: 3

Compression:

Stored size: 1.27 KB

Contents

# frozen_string_literal: true
class Cognito
  class Client
    class Resource
      class IdentitySearch < self
        register_type :identity_search

        many :identity_records
      end # IdentitySearch

      class IdentityRecord < self
        register_type :identity_record

        many :addresses
        many :names
        many :ssns
        many :phones
        many :births
        many :deaths
      end # IdentityRecord

      class USAddress < self
        register_type :us_address

        attribute :street
        attribute :city
        attribute :subdivision
        attribute :postal_code
      end # USAddress

      class PartialName < self
        register_type :name

        attribute :first
        attribute :middle
        attribute :last
      end # PartialName

      class SSN < self
        register_type :ssn

        attribute :number
      end # SSN

      class Phone < self
        register_type :phone
      end # Phone

      class PartialDate < self
        attribute :day
        attribute :month
        attribute :year
      end # PartialDate

      class Birth < PartialDate
        register_type :birth
      end # Birth

      class Death < PartialDate
        register_type :death
      end # Death
    end # Resource
  end # Client
end # Cognito

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cognito-client-0.5.2 lib/cognito/client/resource/identity_search.rb
cognito-client-0.5.1 lib/cognito/client/resource/identity_search.rb
cognito-client-0.5.0 lib/cognito/client/resource/identity_search.rb