lib/purecloud/models/locations_search_response.rb in purecloud-0.49.1 vs lib/purecloud/models/locations_search_response.rb in purecloud-0.50.1
- old
+ new
@@ -34,12 +34,10 @@
attr_accessor :types
attr_accessor :results
- attr_accessor :aggregations
-
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'total' => :'total',
@@ -56,14 +54,12 @@
:'next_page' => :'nextPage',
:'types' => :'types',
- :'results' => :'results',
+ :'results' => :'results'
- :'aggregations' => :'aggregations'
-
}
end
# Attribute type mapping.
def self.swagger_types
@@ -74,12 +70,11 @@
:'page_number' => :'Integer',
:'previous_page' => :'String',
:'current_page' => :'String',
:'next_page' => :'String',
:'types' => :'Array<String>',
- :'results' => :'Array<Location>',
- :'aggregations' => :'Array<Location>'
+ :'results' => :'Array<Location>'
}
end
def initialize(attributes = {})
@@ -127,16 +122,10 @@
if (value = attributes[:'results']).is_a?(Array)
self.results = value
end
end
- if attributes[:'aggregations']
- if (value = attributes[:'aggregations']).is_a?(Array)
- self.aggregations = value
- end
- end
-
end
# Check equality by comparing each attribute.
def ==(o)
return true if self.equal?(o)
@@ -147,21 +136,20 @@
page_number == o.page_number &&
previous_page == o.previous_page &&
current_page == o.current_page &&
next_page == o.next_page &&
types == o.types &&
- results == o.results &&
- aggregations == o.aggregations
+ results == o.results
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [total, page_count, page_size, page_number, previous_page, current_page, next_page, types, results, aggregations].hash
+ [total, page_count, page_size, page_number, previous_page, current_page, next_page, types, results].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)