Class: CorePro::Models::CustomerResponse
- Defined in:
- lib/corepro/models/customer_response.rb
Instance Attribute Summary collapse
-
#customerId ⇒ Object
Returns the value of attribute customerId.
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#questions ⇒ Object
Returns the value of attribute questions.
-
#verificationId ⇒ Object
Returns the value of attribute verificationId.
-
#verificationStatus ⇒ Object
Returns the value of attribute verificationStatus.
Attributes inherited from ModelBase
Instance Method Summary collapse
- #from_json!(json, classDefs) ⇒ Object
-
#initialize ⇒ CustomerResponse
constructor
A new instance of CustomerResponse.
Methods inherited from ModelBase
Methods inherited from JsonBase
Constructor Details
#initialize ⇒ CustomerResponse
Returns a new instance of CustomerResponse.
21 22 23 24 25 |
# File 'lib/corepro/models/customer_response.rb', line 21 def initialize super @messages = [] @questions = [] end |
Instance Attribute Details
#customerId ⇒ Object
Returns the value of attribute customerId.
8 9 10 |
# File 'lib/corepro/models/customer_response.rb', line 8 def customerId @customerId end |
#messages ⇒ Object
Returns the value of attribute messages.
9 10 11 |
# File 'lib/corepro/models/customer_response.rb', line 9 def @messages end |
#questions ⇒ Object
Returns the value of attribute questions.
10 11 12 |
# File 'lib/corepro/models/customer_response.rb', line 10 def questions @questions end |
#verificationId ⇒ Object
Returns the value of attribute verificationId.
11 12 13 |
# File 'lib/corepro/models/customer_response.rb', line 11 def verificationId @verificationId end |
#verificationStatus ⇒ Object
Returns the value of attribute verificationStatus.
12 13 14 |
# File 'lib/corepro/models/customer_response.rb', line 12 def verificationStatus @verificationStatus end |
Instance Method Details
#from_json!(json, classDefs) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/corepro/models/customer_response.rb', line 14 def from_json! json, classDefs classDefs = classDefs || {} classDefs['messages'] = CustomerMessage classDefs['questions'] = CustomerQuestion super json, classDefs end |