Class: Punchblock::Command::Unjoin
- Inherits:
-
Punchblock::CommandNode
- Object
- Niceogiri::XML::Node
- RayoNode
- Punchblock::CommandNode
- Punchblock::Command::Unjoin
- Defined in:
- lib/punchblock/command/unjoin.rb
Instance Attribute Summary
Attributes inherited from RayoNode
#call_id, #client, #component_id, #connection, #original_component
Class Method Summary collapse
-
.new(options = {}) ⇒ Command::Unjoin
Create an ujoin message.
Instance Method Summary collapse
-
#inspect_attributes ⇒ Object
:nodoc:.
-
#mixer_id ⇒ String
The mixer name to unjoin.
- #mixer_id=(other) ⇒ Object
-
#other_call_id ⇒ String
The call ID to unjoin.
- #other_call_id=(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 message
15 16 17 18 19 |
# File 'lib/punchblock/command/unjoin.rb', line 15 def self.new( = {}) super().tap do |new_node| .each_pair { |k,v| new_node.send :"#{k}=", v } end end |
Instance Method Details
#inspect_attributes ⇒ Object
:nodoc:
45 46 47 |
# File 'lib/punchblock/command/unjoin.rb', line 45 def inspect_attributes # :nodoc: [:other_call_id, :mixer_id] + super end |
#mixer_id ⇒ String
Returns the mixer name to unjoin.
35 36 37 |
# File 'lib/punchblock/command/unjoin.rb', line 35 def mixer_id read_attr :'mixer-id' end |
#mixer_id=(other) ⇒ Object
41 42 43 |
# File 'lib/punchblock/command/unjoin.rb', line 41 def mixer_id=(other) write_attr :'mixer-id', other end |
#other_call_id ⇒ String
Returns the call ID to unjoin.
23 24 25 |
# File 'lib/punchblock/command/unjoin.rb', line 23 def other_call_id read_attr :'call-id' end |
#other_call_id=(other) ⇒ Object
29 30 31 |
# File 'lib/punchblock/command/unjoin.rb', line 29 def other_call_id=(other) write_attr :'call-id', other end |