lib/purecloud/models/entry.rb in purecloud-0.68.1 vs lib/purecloud/models/entry.rb in purecloud-0.69.1
- old
+ new
@@ -16,30 +16,32 @@
require 'date'
module PureCloud
class Entry
+ # A value included in this facet.
attr_accessor :value
- attr_accessor :key
+ # The number of results with this value.
+ attr_accessor :count
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'value' => :'value',
- :'key' => :'key'
+ :'count' => :'count'
}
end
# Attribute type mapping.
def self.swagger_types
{
- :'value' => :'Object',
- :'key' => :'Object'
+ :'value' => :'String',
+ :'count' => :'Integer'
}
end
def initialize(attributes = {})
@@ -51,31 +53,31 @@
if attributes[:'value']
self.value = attributes[:'value']
end
- if attributes[:'key']
- self.key = attributes[:'key']
+ if attributes[:'count']
+ self.count = attributes[:'count']
end
end
# Check equality by comparing each attribute.
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
value == o.value &&
- key == o.key
+ count == o.count
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [value, key].hash
+ [value, count].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)