class Punchblock::Command::Dial

Public Instance Methods

inherit(xml_node) click to toggle source
Calls superclass method Punchblock::HasHeaders#inherit
# 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
rayo_attributes() click to toggle source
# File lib/punchblock/command/dial.rb, line 32
def rayo_attributes
  {to: to, from: from, uri: uri, timeout: timeout}
end
rayo_children(root) click to toggle source
Calls superclass method Punchblock::HasHeaders#rayo_children
# File lib/punchblock/command/dial.rb, line 36
def rayo_children(root)
  join.to_rayo(root.parent) if join
  super
end
response=(other) click to toggle source
Calls superclass method
# 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