lib/bandwidth-sdk/models/bxml/verbs/transfer.rb in bandwidth-sdk-11.0.0.pre.beta.1.1 vs lib/bandwidth-sdk/models/bxml/verbs/transfer.rb in bandwidth-sdk-11.0.0.pre.beta.2.0
- old
+ new
@@ -1,14 +1,12 @@
module Bandwidth
module Bxml
- class Transfer
- include Bandwidth::Bxml::NestableVerb
-
+ class Transfer < Bandwidth::Bxml::NestableVerb
# Initializer
# @param transfer_to [Array] XML element children. Defaults to an empty array. Valid nested transfer verbs are: PhoneNumber, SipUri.
# @param attributes [Hash] The attributes to add to the element. Defaults to an empty hash.
def initialize(transfer_to = [], attributes = {})
- super("Transfer", nil, transfer_to, attributes)
+ super('Transfer', nil, transfer_to, attributes)
@attribute_map = {
transfer_caller_id: 'transferCallerId', # Optional [String]: The caller ID to use when the call is transferred, if different. Must be in E.164 format (e.g. +15555555555) or be one of the following strings Restricted, Anonymous, Private, or Unavailable. Leave as default to pass along the number of the remote party. Defaults to None.
call_timeout: 'callTimeout', # Optional [Number]:The timeout (in seconds) for the callee to answer the call after it starts ringing. If the call does not start ringing within 30s, the call will be cancelled regardless of this value. Range: decimal values between 1 - 300. Default value is 30 seconds. Defaults to None.
transfer_complete_url: 'transferCompleteUrl', # Optional [String]: URL to send the Transfer Complete event to and request new BXML. Optional but recommended. See below for further details. May be a relative URL. Defaults to None.