Class: CorePro::Models::CustomerQuestion
- Defined in:
- lib/corepro/models/customer_question.rb
Instance Attribute Summary collapse
-
#answers ⇒ Object
Returns the value of attribute answers.
-
#prompt ⇒ Object
Returns the value of attribute prompt.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #from_json!(json, classDefs) ⇒ Object
-
#initialize ⇒ CustomerQuestion
constructor
A new instance of CustomerQuestion.
Methods inherited from JsonBase
Constructor Details
#initialize ⇒ CustomerQuestion
Returns a new instance of CustomerQuestion.
15 16 17 18 |
# File 'lib/corepro/models/customer_question.rb', line 15 def initialize super @answers = [] end |
Instance Attribute Details
#answers ⇒ Object
Returns the value of attribute answers.
6 7 8 |
# File 'lib/corepro/models/customer_question.rb', line 6 def answers @answers end |
#prompt ⇒ Object
Returns the value of attribute prompt.
7 8 9 |
# File 'lib/corepro/models/customer_question.rb', line 7 def prompt @prompt end |
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/corepro/models/customer_question.rb', line 8 def type @type end |
Instance Method Details
#from_json!(json, classDefs) ⇒ Object
10 11 12 13 |
# File 'lib/corepro/models/customer_question.rb', line 10 def from_json! json, classDefs classDefs = classDefs || {} super json, classDefs end |