Class: Punchblock::Command::Redirect
- Inherits:
-
Punchblock::CommandNode
- Object
- Niceogiri::XML::Node
- RayoNode
- Punchblock::CommandNode
- Punchblock::Command::Redirect
- Includes:
- HasHeaders
- Defined in:
- lib/punchblock/command/redirect.rb
Instance Attribute Summary
Attributes inherited from RayoNode
#client, #component_id, #connection, #domain, #original_component, #target_call_id, #target_mixer_name
Class Method Summary (collapse)
-
+ (Command::Redirect) new(options = {})
Create an Rayo redirect message.
Instance Method Summary (collapse)
-
- (Object) inspect_attributes
:nodoc:.
-
- (String) to
The redirect target.
- - (Object) to=(redirect_to)
Methods included from HasHeaders
#headers, #headers=, #headers_hash
Methods inherited from Punchblock::CommandNode
#initialize, #response, #response=, #write_attr
Methods inherited from RayoNode
class_from_registration, #eql?, import, #inspect, register, #source
Constructor Details
This class inherits a constructor from Punchblock::CommandNode
Class Method Details
+ (Command::Redirect) new(options = {})
Create an Rayo redirect message
27 28 29 30 31 32 |
# File 'lib/punchblock/command/redirect.rb', line 27 def self.new( = {}) super().tap do |new_node| new_node.to = [:to] new_node.headers = [:headers] end end |
Instance Method Details
- (Object) inspect_attributes
:nodoc:
46 47 48 |
# File 'lib/punchblock/command/redirect.rb', line 46 def inspect_attributes # :nodoc: [:to] + super end |
- (String) to
The redirect target
36 37 38 |
# File 'lib/punchblock/command/redirect.rb', line 36 def to read_attr :to end |
- (Object) to=(redirect_to)
42 43 44 |
# File 'lib/punchblock/command/redirect.rb', line 42 def to=(redirect_to) write_attr :to, redirect_to end |