lib/purecloudplatformclientv2/models/time_zone.rb in purecloudplatformclientv2-41.0.0 vs lib/purecloudplatformclientv2/models/time_zone.rb in purecloudplatformclientv2-42.0.0

- old
+ new

@@ -16,45 +16,45 @@ require 'date' module PureCloud class TimeZone - attr_accessor :display_name - - attr_accessor :id - attr_accessor :dstsavings attr_accessor :raw_offset + attr_accessor :id + + attr_accessor :display_name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'display_name' => :'displayName', + :'dstsavings' => :'dstsavings', + :'raw_offset' => :'rawOffset', + :'id' => :'id', - :'dstsavings' => :'dstsavings', + :'display_name' => :'displayName' - :'raw_offset' => :'rawOffset' - } end # Attribute type mapping. def self.swagger_types { - :'display_name' => :'String', + :'dstsavings' => :'Integer', + :'raw_offset' => :'Integer', + :'id' => :'String', - :'dstsavings' => :'Integer', + :'display_name' => :'String' - :'raw_offset' => :'Integer' - } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -63,41 +63,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?(:'dstsavings') - self.display_name = attributes[:'displayName'] + self.dstsavings = attributes[:'dstsavings'] end - if attributes.has_key?(:'id') + if attributes.has_key?(:'rawOffset') - self.id = attributes[:'id'] + self.raw_offset = attributes[:'rawOffset'] end - if attributes.has_key?(:'dstsavings') + if attributes.has_key?(:'id') - self.dstsavings = attributes[:'dstsavings'] + self.id = attributes[:'id'] end - if attributes.has_key?(:'rawOffset') + if attributes.has_key?(:'displayName') - self.raw_offset = attributes[:'rawOffset'] + self.display_name = attributes[:'displayName'] end @@ -158,14 +158,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 + raw_offset == o.raw_offset && + id == o.id && + display_name == o.display_name end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -173,10 +173,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [display_name, id, dstsavings, raw_offset].hash + [dstsavings, raw_offset, id, display_name].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)