Class: Incognia::PersonId
- Inherits:
-
Object
- Object
- Incognia::PersonId
- Defined in:
- lib/incognia_api/person_id.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(type:, value:) ⇒ PersonId
constructor
A new instance of PersonId.
- #to_hash ⇒ Object
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
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/incognia_api/person_id.rb', line 5 def type @type end |
#value ⇒ Object (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_hash ⇒ Object
12 13 14 |
# File 'lib/incognia_api/person_id.rb', line 12 def to_hash { type: type, value: value } end |