Class: Punchblock::Command::Join
- Inherits:
-
Punchblock::CommandNode
- Object
- RayoNode
- Punchblock::CommandNode
- Punchblock::Command::Join
- Defined in:
- lib/punchblock/command/join.rb
Constant Summary collapse
- VALID_DIRECTIONS =
[:duplex, :send, :recv].freeze
Instance Attribute Summary
Attributes inherited from RayoNode
#client, #connection, #original_component
Instance Method Summary collapse
-
#call_uri ⇒ String
The call ID to join.
- #direction=(other) ⇒ Object
-
#media ⇒ #to_sym
The method by which to negotiate media.
-
#mixer_name ⇒ String
The mixer name to join.
- #rayo_attributes ⇒ Object
Methods inherited from Punchblock::CommandNode
#initialize, #response, #response=
Methods inherited from RayoNode
#==, class_from_registration, from_xml, #inherit, #inspect, #rayo_children, register, #source, #to_rayo, #to_xml
Constructor Details
This class inherits a constructor from Punchblock::CommandNode
Instance Method Details
#call_uri ⇒ String
Returns the call ID to join.
11 |
# File 'lib/punchblock/command/join.rb', line 11 attribute :call_uri |
#direction=(other) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/punchblock/command/join.rb', line 19 def direction=(other) if other && !VALID_DIRECTIONS.include?(other.to_sym) raise ArgumentError, "Invalid Direction (#{other.inspect}), use: #{VALID_DIRECTIONS*' '}" end super end |
#media ⇒ #to_sym
Returns the method by which to negotiate media.
27 |
# File 'lib/punchblock/command/join.rb', line 27 attribute :media, Symbol |
#mixer_name ⇒ String
Returns the mixer name to join.
15 |
# File 'lib/punchblock/command/join.rb', line 15 attribute :mixer_name |
#rayo_attributes ⇒ Object
29 30 31 32 33 34 35 36 |
# File 'lib/punchblock/command/join.rb', line 29 def rayo_attributes { 'call-uri' => call_uri, 'mixer-name' => mixer_name, 'direction' => direction, 'media' => media } end |