lib/purecloud/models/geolocation.rb in purecloud-0.68.1 vs lib/purecloud/models/geolocation.rb in purecloud-0.69.1
- old
+ new
@@ -37,10 +37,12 @@
attr_accessor :region
attr_accessor :city
+ attr_accessor :locations
+
# The URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -62,10 +64,12 @@
:'region' => :'region',
:'city' => :'city',
+ :'locations' => :'locations',
+
:'self_uri' => :'selfUri'
}
end
@@ -79,10 +83,11 @@
:'latitude' => :'Float',
:'longitude' => :'Float',
:'country' => :'String',
:'region' => :'String',
:'city' => :'String',
+ :'locations' => :'Array<LocationDefinition>',
:'self_uri' => :'String'
}
end
@@ -127,10 +132,16 @@
if attributes[:'city']
self.city = attributes[:'city']
end
+ if attributes[:'locations']
+ if (value = attributes[:'locations']).is_a?(Array)
+ self.locations = value
+ end
+ end
+
if attributes[:'selfUri']
self.self_uri = attributes[:'selfUri']
end
end
@@ -146,20 +157,21 @@
latitude == o.latitude &&
longitude == o.longitude &&
country == o.country &&
region == o.region &&
city == o.city &&
+ locations == o.locations &&
self_uri == o.self_uri
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [id, name, type, primary, latitude, longitude, country, region, city, self_uri].hash
+ [id, name, type, primary, latitude, longitude, country, region, city, locations, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)