Class: Punchblock::Command::Answer
- Inherits:
-
Punchblock::CommandNode
- Object
- Niceogiri::XML::Node
- RayoNode
- Punchblock::CommandNode
- Punchblock::Command::Answer
- Includes:
- HasHeaders
- Defined in:
- lib/punchblock/command/answer.rb
Instance Attribute Summary
Attributes inherited from RayoNode
#call_id, #client, #component_id, #connection, #original_component
Class Method Summary collapse
-
.new(options = {}) ⇒ Command::Answer
Create an Rayo answer command.
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::Answer
Create an Rayo answer command. This is equivalent to a SIP “200 OK”
23 24 25 26 27 |
# File 'lib/punchblock/command/answer.rb', line 23 def self.new( = {}) super().tap do |new_node| new_node.headers = [:headers] end end |