lib/purecloud/models/call.rb in purecloud-0.27.0 vs lib/purecloud/models/call.rb in purecloud-0.28.0
- old
+ new
@@ -29,14 +29,10 @@
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :start_hold_time
attr_accessor :document_id
- attr_accessor :_self
-
- attr_accessor :other
-
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
attr_accessor :connected_time
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -68,14 +64,10 @@
:'start_hold_time' => :'startHoldTime',
:'document_id' => :'documentId',
- :'_self' => :'self',
-
- :'other' => :'other',
-
:'connected_time' => :'connectedTime'
}
end
@@ -94,12 +86,10 @@
:'segments' => :'Array<Segment>',
:'error_info' => :'ErrorBody',
:'disconnect_type' => :'String',
:'start_hold_time' => :'DateTime',
:'document_id' => :'String',
- :'_self' => :'Address',
- :'other' => :'Address',
:'connected_time' => :'DateTime'
}
end
@@ -174,18 +164,10 @@
if attributes[:'documentId']
self.document_id = attributes[:'documentId']
end
- if attributes[:'self']
- self._self = attributes[:'self']
- end
-
- if attributes[:'other']
- self.other = attributes[:'other']
- end
-
if attributes[:'connectedTime']
self.connected_time = attributes[:'connectedTime']
end
end
@@ -217,11 +199,11 @@
@recording_state = recording_state
end
# Custom attribute writer method checking allowed values (enum).
def disconnect_type=(disconnect_type)
- allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TIMEOUT", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "ERROR", "PEER", "OTHER"]
+ allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "ERROR", "PEER", "OTHER"]
if disconnect_type && !allowed_values.include?(disconnect_type)
fail "invalid value for 'disconnect_type', must be one of #{allowed_values}"
end
@disconnect_type = disconnect_type
end
@@ -242,22 +224,20 @@
segments == o.segments &&
error_info == o.error_info &&
disconnect_type == o.disconnect_type &&
start_hold_time == o.start_hold_time &&
document_id == o.document_id &&
- _self == o._self &&
- other == o.other &&
connected_time == o.connected_time
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [state, id, direction, recording, recording_state, muted, confined, held, recording_id, segments, error_info, disconnect_type, start_hold_time, document_id, _self, other, connected_time].hash
+ [state, id, direction, recording, recording_state, muted, confined, held, recording_id, segments, error_info, disconnect_type, start_hold_time, document_id, connected_time].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)