Module: GenesisRuby::Api::Mixins::Requests::NonFinancial::Kyc::DocumentAttributes
- Included in:
- Requests::NonFinancial::Kyc::Verifications::AddressByDocumentProof, Requests::NonFinancial::Kyc::Verifications::RemoteIdentity
- Defined in:
- lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb
Overview
Document Attributes mixin
Instance Attribute Summary collapse
-
#additional_proof ⇒ Object
Returns the value of attribute additional_proof.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#full_address ⇒ Object
Returns the value of attribute full_address.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#middle_name ⇒ Object
Returns the value of attribute middle_name.
-
#proof ⇒ Object
Returns the value of attribute proof.
Instance Method Summary collapse
-
#date_of_birth ⇒ Object
Gets date of birth for the document attributes.
-
#date_of_birth=(value) ⇒ Object
Sets date of birth for the document attributes.
Instance Attribute Details
#additional_proof ⇒ Object
Returns the value of attribute additional_proof.
12 13 14 |
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 12 def additional_proof @additional_proof end |
#first_name ⇒ Object
Returns the value of attribute first_name.
13 14 15 |
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 13 def first_name @first_name end |
#full_address ⇒ Object
Returns the value of attribute full_address.
12 13 14 |
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 12 def full_address @full_address end |
#last_name ⇒ Object
Returns the value of attribute last_name.
13 14 15 |
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 13 def last_name @last_name end |
#middle_name ⇒ Object
Returns the value of attribute middle_name.
13 14 15 |
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 13 def middle_name @middle_name end |
#proof ⇒ Object
Returns the value of attribute proof.
12 13 14 |
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 12 def proof @proof end |
Instance Method Details
#date_of_birth ⇒ Object
Gets date of birth for the document attributes
16 17 18 19 20 |
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 16 def date_of_birth @date_of_birth&.strftime( GenesisRuby::Api::Constants::DateTimeFormats::YYYY_MM_DD_ISO_8601 ) end |
#date_of_birth=(value) ⇒ Object
Sets date of birth for the document attributes
23 24 25 |
# File 'lib/genesis_ruby/api/mixins/requests/non_financial/kyc/document_attributes.rb', line 23 def date_of_birth=(value) parse_date attribute: __method__, value: value, allow_empty: true end |