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

- old
+ new

@@ -16,45 +16,45 @@ require 'date' module PureCloud class TimeZone - attr_accessor :dstsavings + attr_accessor :display_name - attr_accessor :raw_offset - attr_accessor :id - attr_accessor :display_name + attr_accessor :dstsavings + attr_accessor :raw_offset + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'dstsavings' => :'dstsavings', + :'display_name' => :'displayName', - :'raw_offset' => :'rawOffset', - :'id' => :'id', - :'display_name' => :'displayName' + :'dstsavings' => :'dstsavings', + :'raw_offset' => :'rawOffset' + } end # Attribute type mapping. def self.swagger_types { - :'dstsavings' => :'Integer', + :'display_name' => :'String', - :'raw_offset' => :'Integer', - :'id' => :'String', - :'display_name' => :'String' + :'dstsavings' => :'Integer', + :'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?(:'dstsavings') + if attributes.has_key?(:'displayName') - self.dstsavings = attributes[:'dstsavings'] + self.display_name = attributes[:'displayName'] end - if attributes.has_key?(:'rawOffset') + if attributes.has_key?(:'id') - self.raw_offset = attributes[:'rawOffset'] + self.id = attributes[:'id'] end - if attributes.has_key?(:'id') + if attributes.has_key?(:'dstsavings') - self.id = attributes[:'id'] + self.dstsavings = attributes[:'dstsavings'] end - if attributes.has_key?(:'displayName') + if attributes.has_key?(:'rawOffset') - self.display_name = attributes[:'displayName'] + self.raw_offset = attributes[:'rawOffset'] 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 && - dstsavings == o.dstsavings && - raw_offset == o.raw_offset && + display_name == o.display_name && id == o.id && - display_name == o.display_name + dstsavings == o.dstsavings && + raw_offset == o.raw_offset 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 - [dstsavings, raw_offset, id, display_name].hash + [display_name, id, dstsavings, raw_offset].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)