lib/purecloudplatformclientv2/models/survey.rb in purecloudplatformclientv2-57.0.0 vs lib/purecloudplatformclientv2/models/survey.rb in purecloudplatformclientv2-58.0.0
- old
+ new
@@ -37,10 +37,13 @@
attr_accessor :answers
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :completed_date
+ # Additional information about what happened when the survey is in Error status.
+ attr_accessor :survey_error_details
+
# The URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -62,10 +65,12 @@
:'answers' => :'answers',
:'completed_date' => :'completedDate',
+ :'survey_error_details' => :'surveyErrorDetails',
+
:'self_uri' => :'selfUri'
}
end
@@ -89,10 +94,12 @@
:'answers' => :'SurveyScoringSet',
:'completed_date' => :'DateTime',
+ :'survey_error_details' => :'SurveyErrorDetails',
+
:'self_uri' => :'String'
}
end
@@ -184,10 +191,19 @@
end
+ if attributes.has_key?(:'surveyErrorDetails')
+
+
+ self.survey_error_details = attributes[:'surveyErrorDetails']
+
+
+ end
+
+
if attributes.has_key?(:'selfUri')
self.self_uri = attributes[:'selfUri']
@@ -253,10 +269,14 @@
+
+
+
+
end
@@ -315,10 +335,15 @@
+
+
+
+
+
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
@@ -329,10 +354,11 @@
agent == o.agent &&
status == o.status &&
queue == o.queue &&
answers == o.answers &&
completed_date == o.completed_date &&
+ survey_error_details == o.survey_error_details &&
self_uri == o.self_uri
end
# @see the `==` method
# @param [Object] Object to be compared
@@ -341,10 +367,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [id, name, conversation, survey_form, agent, status, queue, answers, completed_date, self_uri].hash
+ [id, name, conversation, survey_form, agent, status, queue, answers, completed_date, survey_error_details, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)