Class: Punchblock::Command::Redirect

Inherits:
Punchblock::CommandNode show all
Includes:
HasHeaders
Defined in:
lib/punchblock/command/redirect.rb

Instance Attribute Summary

Attributes inherited from RayoNode

#client, #connection, #original_component

Instance Method Summary collapse

Methods included from HasHeaders

#headers=, included, #inherit, #rayo_children

Methods inherited from Punchblock::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 Punchblock::CommandNode

Instance Method Details

#rayo_attributesObject


13
14
15
# File 'lib/punchblock/command/redirect.rb', line 13

def rayo_attributes
  {'to' => to}
end

#toString

Returns the redirect target

Returns:

  • (String)

    the redirect target


11
# File 'lib/punchblock/command/redirect.rb', line 11

attribute :to