Class: Vonage::Voice::Ncco
- Inherits:
-
Object
- Object
- Vonage::Voice::Ncco
- Defined in:
- lib/vonage/voice/ncco.rb
Constant Summary collapse
- ACTIONS =
{ connect: Vonage::Voice::Actions::Connect, conversation: Vonage::Voice::Actions::Conversation, input: Vonage::Voice::Actions::Input, notify: Vonage::Voice::Actions::Notify, record: Vonage::Voice::Actions::Record, stream: Vonage::Voice::Actions::Stream, talk: Vonage::Voice::Actions::Talk }
Class Method Summary collapse
-
.create(*actions) ⇒ Array
Create an NCCO.
- .method_missing(method) ⇒ Object
Class Method Details
.create(*actions) ⇒ Array
Create an NCCO
40 41 42 |
# File 'lib/vonage/voice/ncco.rb', line 40 def self.create(*actions) actions.flatten! end |
.method_missing(method) ⇒ Object
24 25 26 |
# File 'lib/vonage/voice/ncco.rb', line 24 def self.method_missing(method) raise ClientError.new("NCCO action must be one of the valid options. Please refer to https://developer.nexmo.com/voice/voice-api/ncco-reference#ncco-actions for a complete list.") end |