Class: DocFox::KycApplication::Facade
- Inherits:
-
Object
- Object
- DocFox::KycApplication::Facade
- Defined in:
- lib/doc_fox/kyc_application/facade.rb
Instance Attribute Summary collapse
-
#approved_at ⇒ Object
readonly
Returns the value of attribute approved_at.
-
#archived ⇒ Object
readonly
Returns the value of attribute archived.
-
#archived_reason ⇒ Object
readonly
Returns the value of attribute archived_reason.
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#included ⇒ Object
readonly
Returns the value of attribute included.
-
#kyc_entity_type_name ⇒ Object
readonly
Returns the value of attribute kyc_entity_type_name.
-
#relationships ⇒ Object
readonly
Returns the value of attribute relationships.
-
#renew_at ⇒ Object
readonly
Returns the value of attribute renew_at.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Facade
constructor
A new instance of Facade.
Constructor Details
#initialize(hash) ⇒ Facade
Returns a new instance of Facade.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/doc_fox/kyc_application/facade.rb', line 7 def initialize(hash) @id = hash.dig('data', 'id') || hash['id'] @attributes = hash.dig('data', 'attributes') || hash['attributes'] @relationships = hash.dig('data', 'relationships') || hash['relationships'] @included = hash['included'] @approved_at = attributes['approved_at'] @archived = attributes['archived'] @archived_reason = attributes['archived_reason'] @created_at = attributes['created_at'] @kyc_entity_type_name = attributes['kyc_entity_type_name'] @renew_at = attributes['renew_at'] @status = attributes['status'] @updated_at = attributes['updated_at'] end |
Instance Attribute Details
#approved_at ⇒ Object (readonly)
Returns the value of attribute approved_at.
4 5 6 |
# File 'lib/doc_fox/kyc_application/facade.rb', line 4 def approved_at @approved_at end |
#archived ⇒ Object (readonly)
Returns the value of attribute archived.
4 5 6 |
# File 'lib/doc_fox/kyc_application/facade.rb', line 4 def archived @archived end |
#archived_reason ⇒ Object (readonly)
Returns the value of attribute archived_reason.
4 5 6 |
# File 'lib/doc_fox/kyc_application/facade.rb', line 4 def archived_reason @archived_reason end |
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
4 5 6 |
# File 'lib/doc_fox/kyc_application/facade.rb', line 4 def attributes @attributes end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/doc_fox/kyc_application/facade.rb', line 4 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/doc_fox/kyc_application/facade.rb', line 4 def id @id end |
#included ⇒ Object (readonly)
Returns the value of attribute included.
4 5 6 |
# File 'lib/doc_fox/kyc_application/facade.rb', line 4 def included @included end |
#kyc_entity_type_name ⇒ Object (readonly)
Returns the value of attribute kyc_entity_type_name.
4 5 6 |
# File 'lib/doc_fox/kyc_application/facade.rb', line 4 def kyc_entity_type_name @kyc_entity_type_name end |
#relationships ⇒ Object (readonly)
Returns the value of attribute relationships.
4 5 6 |
# File 'lib/doc_fox/kyc_application/facade.rb', line 4 def relationships @relationships end |
#renew_at ⇒ Object (readonly)
Returns the value of attribute renew_at.
4 5 6 |
# File 'lib/doc_fox/kyc_application/facade.rb', line 4 def renew_at @renew_at end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/doc_fox/kyc_application/facade.rb', line 4 def status @status end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/doc_fox/kyc_application/facade.rb', line 4 def updated_at @updated_at end |