Class: Incognia::PersonId

Inherits:
Object
  • Object
show all
Defined in:
lib/incognia_api/person_id.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, value:) ⇒ PersonId

Returns a new instance of PersonId.



7
8
9
10
# File 'lib/incognia_api/person_id.rb', line 7

def initialize(type:, value:)
  @type  = type
  @value = value
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/incognia_api/person_id.rb', line 5

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/incognia_api/person_id.rb', line 5

def value
  @value
end

Instance Method Details

#to_hashObject



12
13
14
# File 'lib/incognia_api/person_id.rb', line 12

def to_hash
  { type: type, value: value }
end