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