Class: Adhearsion::Rayo::Command::Redirect

Inherits:
Adhearsion::Rayo::CommandNode show all
Includes:
HasHeaders
Defined in:
lib/adhearsion/rayo/command/redirect.rb

Instance Attribute Summary

Attributes inherited from RayoNode

#client, #connection, #original_component

Instance Method Summary collapse

Methods included from HasHeaders

#headers=, #inherit, #rayo_children

Methods inherited from Adhearsion::Rayo::CommandNode

#initialize, #response, #response=

Methods inherited from RayoNode

#==, class_from_registration, from_xml, #inherit, #inspect, #rayo_children, register, #source, #to_rayo, #to_xml

Constructor Details

This class inherits a constructor from Adhearsion::Rayo::CommandNode

Instance Method Details

#rayo_attributesObject



17
18
19
# File 'lib/adhearsion/rayo/command/redirect.rb', line 17

def rayo_attributes
  {'to' => to}
end

#toString

Returns the redirect target

Returns:

  • (String)

    the redirect target



15
# File 'lib/adhearsion/rayo/command/redirect.rb', line 15

attribute :to