Class: CorePro::Models::CustomerResponse

Inherits:
ModelBase show all
Defined in:
lib/corepro/models/customer_response.rb

Instance Attribute Summary collapse

Attributes inherited from ModelBase

#requestId

Instance Method Summary collapse

Methods inherited from ModelBase

escape, #to_s

Methods inherited from JsonBase

#is_hash?, #to_hash, #to_json

Constructor Details

#initializeCustomerResponse

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

#customerIdObject

Returns the value of attribute customerId.



8
9
10
# File 'lib/corepro/models/customer_response.rb', line 8

def customerId
  @customerId
end

#messagesObject

Returns the value of attribute messages.



9
10
11
# File 'lib/corepro/models/customer_response.rb', line 9

def messages
  @messages
end

#questionsObject

Returns the value of attribute questions.



10
11
12
# File 'lib/corepro/models/customer_response.rb', line 10

def questions
  @questions
end

#verificationIdObject

Returns the value of attribute verificationId.



11
12
13
# File 'lib/corepro/models/customer_response.rb', line 11

def verificationId
  @verificationId
end

#verificationStatusObject

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