Class: CorePro::Models::CustomerQuestion

Inherits:
JsonBase
  • Object
show all
Defined in:
lib/corepro/models/customer_question.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from JsonBase

#is_hash?, #to_hash, #to_json

Constructor Details

#initializeCustomerQuestion

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

#answersObject

Returns the value of attribute answers.



6
7
8
# File 'lib/corepro/models/customer_question.rb', line 6

def answers
  @answers
end

#promptObject

Returns the value of attribute prompt.



7
8
9
# File 'lib/corepro/models/customer_question.rb', line 7

def prompt
  @prompt
end

#typeObject

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