Class: Punchblock::Event::Unjoined
- Inherits:
-
Punchblock::Event
- Object
- Niceogiri::XML::Node
- RayoNode
- Punchblock::Event
- Punchblock::Event::Unjoined
- Defined in:
- lib/punchblock/event/unjoined.rb
Instance Attribute Summary
Attributes inherited from RayoNode
#call_id, #client, #component_id, #connection, #original_component
Class Method Summary collapse
-
.new(options = {}) ⇒ Event::Unjoined
Create an unjoined event.
Instance Method Summary collapse
-
#inspect_attributes ⇒ Object
:nodoc:.
-
#mixer_id ⇒ String
The mixer name that was unjoined.
- #mixer_id=(other) ⇒ Object
-
#other_call_id ⇒ String
The call ID that was unjoined.
- #other_call_id=(other) ⇒ Object
Methods inherited from RayoNode
class_from_registration, #eql?, import, #inspect, register, #source
Class Method Details
.new(options = {}) ⇒ Event::Unjoined
Create an unjoined event
15 16 17 18 19 |
# File 'lib/punchblock/event/unjoined.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/event/unjoined.rb', line 45 def inspect_attributes # :nodoc: [:other_call_id, :mixer_id] + super end |
#mixer_id ⇒ String
Returns the mixer name that was unjoined.
35 36 37 |
# File 'lib/punchblock/event/unjoined.rb', line 35 def mixer_id read_attr :'mixer-id' end |
#mixer_id=(other) ⇒ Object
41 42 43 |
# File 'lib/punchblock/event/unjoined.rb', line 41 def mixer_id=(other) write_attr :'mixer-id', other end |
#other_call_id ⇒ String
Returns the call ID that was unjoined.
23 24 25 |
# File 'lib/punchblock/event/unjoined.rb', line 23 def other_call_id read_attr :'call-id' end |
#other_call_id=(other) ⇒ Object
29 30 31 |
# File 'lib/punchblock/event/unjoined.rb', line 29 def other_call_id=(other) write_attr :'call-id', other end |