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
Instance Attribute Summary
Attributes inherited from RayoNode
#call_id, #client, #component_id, #connection, #original_component
Class Method Summary collapse
-
.new(options = {}) ⇒ Command::Hangup
Create an Rayo hangup message.
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, #inspect_attributes, register, #source
Constructor Details
This class inherits a constructor from Punchblock::CommandNode
Class Method Details
.new(options = {}) ⇒ Command::Hangup
Create an Rayo hangup message
18 19 20 21 22 |
# File 'lib/punchblock/command/hangup.rb', line 18 def self.new( = {}) super().tap do |new_node| new_node.headers = [:headers] end end |