lib/purecloud/models/keyword.rb in purecloud-0.48.1 vs lib/purecloud/models/keyword.rb in purecloud-0.49.1

- old
+ new

@@ -30,10 +30,16 @@ attr_accessor :customer_score_modifier attr_accessor :alternate_spellings + attr_accessor :spotability_index + + attr_accessor :margin_of_error + + attr_accessor :pronunciation + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', @@ -46,12 +52,18 @@ :'agent_score_modifier' => :'agentScoreModifier', :'customer_score_modifier' => :'customerScoreModifier', - :'alternate_spellings' => :'alternateSpellings' + :'alternate_spellings' => :'alternateSpellings', + :'spotability_index' => :'spotabilityIndex', + + :'margin_of_error' => :'marginOfError', + + :'pronunciation' => :'pronunciation' + } end # Attribute type mapping. def self.swagger_types @@ -60,11 +72,14 @@ :'name' => :'String', :'phrase' => :'String', :'confidence' => :'Integer', :'agent_score_modifier' => :'Integer', :'customer_score_modifier' => :'Integer', - :'alternate_spellings' => :'Array<String>' + :'alternate_spellings' => :'Array<String>', + :'spotability_index' => :'Float', + :'margin_of_error' => :'Float', + :'pronunciation' => :'String' } end def initialize(attributes = {}) @@ -102,10 +117,22 @@ if (value = attributes[:'alternateSpellings']).is_a?(Array) self.alternate_spellings = value end end + if attributes[:'spotabilityIndex'] + self.spotability_index = attributes[:'spotabilityIndex'] + end + + if attributes[:'marginOfError'] + self.margin_of_error = attributes[:'marginOfError'] + end + + if attributes[:'pronunciation'] + self.pronunciation = attributes[:'pronunciation'] + end + end # Check equality by comparing each attribute. def ==(o) return true if self.equal?(o) @@ -114,20 +141,23 @@ name == o.name && phrase == o.phrase && confidence == o.confidence && agent_score_modifier == o.agent_score_modifier && customer_score_modifier == o.customer_score_modifier && - alternate_spellings == o.alternate_spellings + alternate_spellings == o.alternate_spellings && + spotability_index == o.spotability_index && + margin_of_error == o.margin_of_error && + pronunciation == o.pronunciation end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [id, name, phrase, confidence, agent_score_modifier, customer_score_modifier, alternate_spellings].hash + [id, name, phrase, confidence, agent_score_modifier, customer_score_modifier, alternate_spellings, spotability_index, margin_of_error, pronunciation].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)