lib/purecloudplatformclientv2/models/time_zone.rb in purecloudplatformclientv2-30.1.0 vs lib/purecloudplatformclientv2/models/time_zone.rb in purecloudplatformclientv2-31.0.0

- old
+ new

@@ -16,47 +16,45 @@ require 'date' module PureCloud class TimeZone - # The globally unique identifier for the object. + attr_accessor :display_name + attr_accessor :id - attr_accessor :name + attr_accessor :dstsavings - attr_accessor :offset + attr_accessor :raw_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', - :'name' => :'name', + :'dstsavings' => :'dstsavings', - :'offset' => :'offset', + :'raw_offset' => :'rawOffset' - :'self_uri' => :'selfUri' - } end # Attribute type mapping. def self.swagger_types { + :'display_name' => :'String', + :'id' => :'String', - :'name' => :'String', + :'dstsavings' => :'Integer', - :'offset' => :'Integer', + :'raw_offset' => :'Integer' - :'self_uri' => :'String' - } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -65,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?(:'id') + if attributes.has_key?(:'displayName') - self.id = attributes[:'id'] + self.display_name = attributes[:'displayName'] end - if attributes.has_key?(:'name') + if attributes.has_key?(:'id') - self.name = attributes[:'name'] + self.id = attributes[:'id'] end - if attributes.has_key?(:'offset') + if attributes.has_key?(:'dstsavings') - self.offset = attributes[:'offset'] + self.dstsavings = attributes[:'dstsavings'] end - if attributes.has_key?(:'selfUri') + if attributes.has_key?(:'rawOffset') - self.self_uri = attributes[:'selfUri'] + self.raw_offset = attributes[:'rawOffset'] end @@ -160,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 && - name == o.name && - offset == o.offset && - self_uri == o.self_uri + dstsavings == o.dstsavings && + raw_offset == o.raw_offset end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -175,10 +173,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, name, offset, self_uri].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)