Class: Punchblock::Command::Hangup
- Inherits:
-
Punchblock::CommandNode
- Object
- Niceogiri::XML::Node
- RayoNode
- Punchblock::CommandNode
- Punchblock::Command::Hangup
- Includes:
- HasHeaders
- Defined in:
- lib/punchblock/command/hangup.rb
Constant Summary
Constants inherited from RayoNode
Instance Attribute Summary
Attributes inherited from RayoNode
#client, #component_id, #connection, #domain, #original_component, #target_call_id, #target_mixer_name
Class Method Summary collapse
-
.new(options = {}) ⇒ Command::Hangup
Create a Rayo hangup command.
Methods included from HasHeaders
#headers, #headers=, #headers_hash, #inspect_attributes
Methods inherited from Punchblock::CommandNode
#initialize, #inspect_attributes, #response, #response=, #write_attr
Methods inherited from RayoNode
class_from_registration, #eql?, import, #inspect, #inspect_attributes, register, #source
Constructor Details
This class inherits a constructor from Punchblock::CommandNode
Class Method Details
.new(options = {}) ⇒ Command::Hangup
Create a Rayo hangup command
20 21 22 23 24 |
# File 'lib/punchblock/command/hangup.rb', line 20 def self.new( = {}) super().tap do |new_node| new_node.headers = [:headers] end end |