lib/purecloudplatformclientv2/models/question.rb in purecloudplatformclientv2-28.0.1 vs lib/purecloudplatformclientv2/models/question.rb in purecloudplatformclientv2-29.0.0

- old
+ new

@@ -39,14 +39,14 @@ attr_accessor :max_response_characters # Prompt for details explaining the chosen NPS score. Used by NPS questions. attr_accessor :explanation_prompt - attr_accessor :is_critical - attr_accessor :is_kill + attr_accessor :is_critical + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', @@ -67,13 +67,13 @@ :'max_response_characters' => :'maxResponseCharacters', :'explanation_prompt' => :'explanationPrompt', - :'is_critical' => :'isCritical', + :'is_kill' => :'isKill', - :'is_kill' => :'isKill' + :'is_critical' => :'isCritical' } end # Attribute type mapping. @@ -98,13 +98,13 @@ :'max_response_characters' => :'Integer', :'explanation_prompt' => :'String', - :'is_critical' => :'BOOLEAN', + :'is_kill' => :'BOOLEAN', - :'is_kill' => :'BOOLEAN' + :'is_critical' => :'BOOLEAN' } end # Initializes the object @@ -206,23 +206,23 @@ end - if attributes.has_key?(:'isCritical') + if attributes.has_key?(:'isKill') - self.is_critical = attributes[:'isCritical'] + self.is_kill = attributes[:'isKill'] end - if attributes.has_key?(:'isKill') + if attributes.has_key?(:'isCritical') - self.is_kill = attributes[:'isKill'] + self.is_critical = attributes[:'isCritical'] end @@ -379,12 +379,12 @@ comments_required == o.comments_required && visibility_condition == o.visibility_condition && answer_options == o.answer_options && max_response_characters == o.max_response_characters && explanation_prompt == o.explanation_prompt && - is_critical == o.is_critical && - is_kill == o.is_kill + is_kill == o.is_kill && + is_critical == o.is_critical end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -392,10 +392,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, text, help_text, type, na_enabled, comments_required, visibility_condition, answer_options, max_response_characters, explanation_prompt, is_critical, is_kill].hash + [id, text, help_text, type, na_enabled, comments_required, visibility_condition, answer_options, max_response_characters, explanation_prompt, is_kill, is_critical].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)