Class: Bandwidth::Bxml::Ring

Inherits:
Verb
  • Object
show all
Defined in:
lib/bandwidth-sdk/models/bxml/verbs/ring.rb

Instance Method Summary collapse

Methods inherited from Verb

#generate_xml, #set_attributes, #to_bxml

Constructor Details

#initialize(attributes = {}) ⇒ Ring

Initializer

Parameters:

  • attributes (Hash) (defaults to: {})

    The attributes to add to the element. Defaults to an empty hash.



6
7
8
9
10
11
12
13
# File 'lib/bandwidth-sdk/models/bxml/verbs/ring.rb', line 6

def initialize(attributes = {})
  super('Ring', nil, attributes)
  
  @attribute_map = {
    duration: 'duration',       # Optional [Number]: How many seconds to play ringing on the call. Default value is 5. Range: decimal values between 0.1 - 86400.
    answer_call: 'answerCall',  # Optional [Boolean]: A boolean indicating whether or not to answer the call when Ring is executed on an unanswered incoming call. Default value is 'true'.
  }
end