Sha256: e737600fa25746dcebcfccfb0793e438a14a682a5c48df9a27fa5dc461d26f72

Contents?: true

Size: 674 Bytes

Versions: 2

Compression:

Stored size: 674 Bytes

Contents

module Yoti
  # Encapsulates profile attribute
  class Attribute
    FAMILY_NAME = 'family_name';
    GIVEN_NAMES = 'given_names';
    FULL_NAME = 'full_name';
    DATE_OF_BIRTH = 'date_of_birth';
    GENDER = 'gender';
    NATIONALITY = 'nationality';
    PHONE_NUMBER = 'phone_number';
    SELFIE = 'selfie';
    EMAIL_ADDRESS = 'email_address';
    POSTAL_ADDRESS = 'postal_address';
    STRUCTURED_POSTAL_ADDRESS = 'structured_postal_address';

    attr_reader :name, :value, :sources, :verifiers

    def initialize(name, value, sources, verifiers)
        @name = name
        @value = value
        @sources = sources
        @verifiers = verifiers
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yoti-1.3.1 lib/yoti/data_type/attribute.rb
yoti-1.3.0 lib/yoti/data_type/attribute.rb