lib/purecloud/models/destination.rb in purecloud-0.27.0 vs lib/purecloud/models/destination.rb in purecloud-0.28.0

- old
+ new

@@ -1,13 +1,9 @@ require 'date' module PureCloud class Destination - attr_accessor :account_code_digits - - attr_accessor :post_connect_digits - # Address or phone number. attr_accessor :address attr_accessor :name @@ -17,14 +13,10 @@ # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'account_code_digits' => :'accountCodeDigits', - - :'post_connect_digits' => :'postConnectDigits', - :'address' => :'address', :'name' => :'name', :'user_id' => :'userId', @@ -35,12 +27,10 @@ end # Attribute type mapping. def self.swagger_types { - :'account_code_digits' => :'String', - :'post_connect_digits' => :'String', :'address' => :'String', :'name' => :'String', :'user_id' => :'String', :'queue_id' => :'String' @@ -52,18 +42,10 @@ # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} - if attributes[:'accountCodeDigits'] - self.account_code_digits = attributes[:'accountCodeDigits'] - end - - if attributes[:'postConnectDigits'] - self.post_connect_digits = attributes[:'postConnectDigits'] - end - if attributes[:'address'] self.address = attributes[:'address'] end if attributes[:'name'] @@ -82,12 +64,10 @@ # Check equality by comparing each attribute. def ==(o) return true if self.equal?(o) self.class == o.class && - account_code_digits == o.account_code_digits && - post_connect_digits == o.post_connect_digits && address == o.address && name == o.name && user_id == o.user_id && queue_id == o.queue_id end @@ -97,10 +77,10 @@ self == o end # Calculate hash code according to all attributes. def hash - [account_code_digits, post_connect_digits, address, name, user_id, queue_id].hash + [address, name, user_id, queue_id].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)