Class: Punchblock::Command::Dial
- Inherits:
-
Punchblock::CommandNode
- Object
- RayoNode
- Punchblock::CommandNode
- Punchblock::Command::Dial
- Includes:
- HasHeaders
- Defined in:
- lib/punchblock/command/dial.rb
Instance Attribute Summary
Attributes inherited from RayoNode
#client, #connection, #original_component
Instance Method Summary collapse
-
#from ⇒ String
The caller ID.
- #inherit(xml_node) ⇒ Object
-
#join ⇒ Join
The nested join.
- #rayo_attributes ⇒ Object
- #rayo_children(root) ⇒ Object
- #response=(other) ⇒ Object
-
#timeout ⇒ Integer
Timeout in milliseconds.
-
#to ⇒ String
Destination to dial.
-
#uri ⇒ String
The requested URI for the resulting call.
Methods included from HasHeaders
Methods inherited from Punchblock::CommandNode
Methods inherited from RayoNode
#==, class_from_registration, from_xml, #inspect, register, #source, #to_rayo, #to_xml
Constructor Details
This class inherits a constructor from Punchblock::CommandNode
Instance Method Details
#from ⇒ String
Returns the caller ID.
14 |
# File 'lib/punchblock/command/dial.rb', line 14 attribute :from |
#inherit(xml_node) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/punchblock/command/dial.rb', line 25 def inherit(xml_node) if join_element = xml_node.at_xpath('ns:join', ns: Join.registered_ns) self.join = Join.from_xml(join_element) end super end |
#join ⇒ Join
Returns the nested join.
23 |
# File 'lib/punchblock/command/dial.rb', line 23 attribute :join, Join |
#rayo_attributes ⇒ Object
32 33 34 |
# File 'lib/punchblock/command/dial.rb', line 32 def rayo_attributes {to: to, from: from, uri: uri, timeout: timeout} end |
#rayo_children(root) ⇒ Object
36 37 38 39 |
# File 'lib/punchblock/command/dial.rb', line 36 def rayo_children(root) join.to_rayo(root.parent) if join super end |
#response=(other) ⇒ Object
41 42 43 44 45 46 47 48 |
# File 'lib/punchblock/command/dial.rb', line 41 def response=(other) if other.is_a?(Ref) @transport = other.scheme @target_call_id = other.call_id @domain = other.domain end super end |
#timeout ⇒ Integer
Returns timeout in milliseconds.
20 |
# File 'lib/punchblock/command/dial.rb', line 20 attribute :timeout, Integer |
#to ⇒ String
Returns destination to dial.
11 |
# File 'lib/punchblock/command/dial.rb', line 11 attribute :to |
#uri ⇒ String
Returns the requested URI for the resulting call.
17 |
# File 'lib/punchblock/command/dial.rb', line 17 attribute :uri |