lib/purecloudplatformclientv2/models/time_zone.rb in purecloudplatformclientv2-29.0.0 vs lib/purecloudplatformclientv2/models/time_zone.rb in purecloudplatformclientv2-30.0.0
- old
+ new
@@ -16,45 +16,47 @@
require 'date'
module PureCloud
class TimeZone
- attr_accessor :display_name
-
+ # The globally unique identifier for the object.
attr_accessor :id
- attr_accessor :dstsavings
+ attr_accessor :name
- attr_accessor :raw_offset
+ attr_accessor :offset
+ # The URI for this object
+ attr_accessor :self_uri
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'display_name' => :'displayName',
-
:'id' => :'id',
- :'dstsavings' => :'dstsavings',
+ :'name' => :'name',
- :'raw_offset' => :'rawOffset'
+ :'offset' => :'offset',
+ :'self_uri' => :'selfUri'
+
}
end
# Attribute type mapping.
def self.swagger_types
{
- :'display_name' => :'String',
-
:'id' => :'String',
- :'dstsavings' => :'Integer',
+ :'name' => :'String',
- :'raw_offset' => :'Integer'
+ :'offset' => :'Integer',
+ :'self_uri' => :'String'
+
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -63,41 +65,41 @@
# convert string to symbol for hash key
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
- if attributes.has_key?(:'displayName')
+ if attributes.has_key?(:'id')
- self.display_name = attributes[:'displayName']
+ self.id = attributes[:'id']
end
- if attributes.has_key?(:'id')
+ if attributes.has_key?(:'name')
- self.id = attributes[:'id']
+ self.name = attributes[:'name']
end
- if attributes.has_key?(:'dstsavings')
+ if attributes.has_key?(:'offset')
- self.dstsavings = attributes[:'dstsavings']
+ self.offset = attributes[:'offset']
end
- if attributes.has_key?(:'rawOffset')
+ if attributes.has_key?(:'selfUri')
- self.raw_offset = attributes[:'rawOffset']
+ self.self_uri = attributes[:'selfUri']
end
@@ -158,14 +160,14 @@
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- display_name == o.display_name &&
id == o.id &&
- dstsavings == o.dstsavings &&
- raw_offset == o.raw_offset
+ name == o.name &&
+ offset == o.offset &&
+ self_uri == o.self_uri
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -173,10 +175,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [display_name, id, dstsavings, raw_offset].hash
+ [id, name, offset, self_uri].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)