Class: DocFox::StatusSummary::Facade
- Inherits:
-
Object
- Object
- DocFox::StatusSummary::Facade
- Defined in:
- lib/doc_fox/status_summary/facade.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#module_statuses ⇒ Object
readonly
Returns the value of attribute module_statuses.
-
#overall_kyc_application_status ⇒ Object
readonly
Returns the value of attribute overall_kyc_application_status.
-
#relationships ⇒ Object
readonly
Returns the value of attribute relationships.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Facade
constructor
A new instance of Facade.
Constructor Details
#initialize(hash) ⇒ Facade
Returns a new instance of Facade.
6 7 8 9 10 11 12 13 |
# File 'lib/doc_fox/status_summary/facade.rb', line 6 def initialize(hash) @id = hash.dig('data', 'id') @attributes = hash.dig('data', 'attributes') @relationships = hash.dig('data', 'relationships') @overall_kyc_application_status = attributes['overall_kyc_application_status'] @module_statuses = attributes['module_statuses'] end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
4 5 6 |
# File 'lib/doc_fox/status_summary/facade.rb', line 4 def attributes @attributes end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/doc_fox/status_summary/facade.rb', line 4 def id @id end |
#module_statuses ⇒ Object (readonly)
Returns the value of attribute module_statuses.
4 5 6 |
# File 'lib/doc_fox/status_summary/facade.rb', line 4 def module_statuses @module_statuses end |
#overall_kyc_application_status ⇒ Object (readonly)
Returns the value of attribute overall_kyc_application_status.
4 5 6 |
# File 'lib/doc_fox/status_summary/facade.rb', line 4 def overall_kyc_application_status @overall_kyc_application_status end |
#relationships ⇒ Object (readonly)
Returns the value of attribute relationships.
4 5 6 |
# File 'lib/doc_fox/status_summary/facade.rb', line 4 def relationships @relationships end |