lib/purecloud/models/channel.rb in purecloud-0.68.1 vs lib/purecloud/models/channel.rb in purecloud-0.69.1
- old
+ new
@@ -16,31 +16,31 @@
require 'date'
module PureCloud
class Channel
- # The globally unique identifier for the object.
- attr_accessor :id
-
attr_accessor :connect_uri
+ # The channel identifier.
+ attr_accessor :id
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'id' => :'id',
+ :'connect_uri' => :'connectUri',
- :'connect_uri' => :'connectUri'
+ :'id' => :'id'
}
end
# Attribute type mapping.
def self.swagger_types
{
- :'id' => :'String',
- :'connect_uri' => :'String'
+ :'connect_uri' => :'String',
+ :'id' => :'String'
}
end
def initialize(attributes = {})
@@ -48,35 +48,35 @@
# convert string to symbol for hash key
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
- if attributes[:'id']
- self.id = attributes[:'id']
- end
-
if attributes[:'connectUri']
self.connect_uri = attributes[:'connectUri']
end
+ if attributes[:'id']
+ self.id = attributes[:'id']
+ end
+
end
# Check equality by comparing each attribute.
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- id == o.id &&
- connect_uri == o.connect_uri
+ connect_uri == o.connect_uri &&
+ id == o.id
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [id, connect_uri].hash
+ [connect_uri, id].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)