Class: Punchblock::Command::Unjoin
- Inherits:
-
Punchblock::CommandNode
- Object
- Niceogiri::XML::Node
- RayoNode
- Punchblock::CommandNode
- Punchblock::Command::Unjoin
- Defined in:
- lib/punchblock/command/unjoin.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::Unjoin
Create an ujoin command.
Instance Method Summary collapse
-
#call_id ⇒ String
The call ID to unjoin.
- #call_id=(other) ⇒ Object
-
#inspect_attributes ⇒ Object
:nodoc:.
-
#mixer_name ⇒ String
The mixer name to unjoin.
- #mixer_name=(other) ⇒ Object
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
.new(options = {}) ⇒ Command::Unjoin
Create an ujoin command
17 18 19 20 21 |
# File 'lib/punchblock/command/unjoin.rb', line 17 def self.new( = {}) super().tap do |new_node| .each_pair { |k,v| new_node.send :"#{k}=", v } end end |
Instance Method Details
#call_id ⇒ String
Returns the call ID to unjoin.
25 26 27 |
# File 'lib/punchblock/command/unjoin.rb', line 25 def call_id read_attr :'call-id' end |
#call_id=(other) ⇒ Object
31 32 33 |
# File 'lib/punchblock/command/unjoin.rb', line 31 def call_id=(other) write_attr :'call-id', other end |
#inspect_attributes ⇒ Object
:nodoc:
47 48 49 |
# File 'lib/punchblock/command/unjoin.rb', line 47 def inspect_attributes # :nodoc: [:call_id, :mixer_name] + super end |
#mixer_name ⇒ String
Returns the mixer name to unjoin.
37 38 39 |
# File 'lib/punchblock/command/unjoin.rb', line 37 def mixer_name read_attr :'mixer-name' end |
#mixer_name=(other) ⇒ Object
43 44 45 |
# File 'lib/punchblock/command/unjoin.rb', line 43 def mixer_name=(other) write_attr :'mixer-name', other end |