Method: Voice::Actions::Connect#initialize
- Defined in:
- lib/vonage/voice/actions/connect.rb
#initialize(attributes = {}) ⇒ Connect
Returns a new instance of Connect.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/vonage/voice/actions/connect.rb', line 9 def initialize(attributes = {}) @endpoint = attributes.fetch(:endpoint) @from = attributes.fetch(:from, nil) @eventType = attributes.fetch(:eventType, nil) @timeout = attributes.fetch(:timeout, nil) @limit = attributes.fetch(:limit, nil) @machineDetection = attributes.fetch(:machineDetection, nil) @advanced_machine_detection = attributes.fetch(:advanced_machine_detection, nil) @eventUrl = attributes.fetch(:eventUrl, nil) @eventMethod = attributes.fetch(:eventMethod, nil) @ringbackTone = attributes.fetch(:ringbackTone, nil) after_initialize! end |