lib/purecloud/models/location.rb in purecloud-0.48.1 vs lib/purecloud/models/location.rb in purecloud-0.49.1
- old
+ new
@@ -32,10 +32,12 @@
# Current activity status of the location.
attr_accessor :state
attr_accessor :version
+ attr_accessor :path
+
# The URI for this object
attr_accessor :self_uri
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -53,10 +55,12 @@
:'state' => :'state',
:'version' => :'version',
+ :'path' => :'path',
+
:'self_uri' => :'selfUri'
}
end
@@ -68,10 +72,11 @@
:'address' => :'LocationAddress',
:'address_verified' => :'BOOLEAN',
:'emergency_number' => :'LocationEmergencyNumber',
:'state' => :'String',
:'version' => :'Integer',
+ :'path' => :'Array<String>',
:'self_uri' => :'String'
}
end
@@ -110,10 +115,16 @@
if attributes[:'version']
self.version = attributes[:'version']
end
+ if attributes[:'path']
+ if (value = attributes[:'path']).is_a?(Array)
+ self.path = value
+ end
+ end
+
if attributes[:'selfUri']
self.self_uri = attributes[:'selfUri']
end
end
@@ -136,20 +147,21 @@
address == o.address &&
address_verified == o.address_verified &&
emergency_number == o.emergency_number &&
state == o.state &&
version == o.version &&
+ path == o.path &&
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, address, address_verified, emergency_number, state, version, self_uri].hash
+ [id, name, address, address_verified, emergency_number, state, version, path, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)