Class: Adhearsion::Rayo::Command::Join
- Inherits:
-
Adhearsion::Rayo::CommandNode
- Object
- RayoNode
- Adhearsion::Rayo::CommandNode
- Adhearsion::Rayo::Command::Join
- Defined in:
- lib/adhearsion/rayo/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 Adhearsion::Rayo::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 Adhearsion::Rayo::CommandNode
Instance Method Details
#call_uri ⇒ String
Returns the call ID to join.
14 |
# File 'lib/adhearsion/rayo/command/join.rb', line 14 attribute :call_uri |
#direction=(other) ⇒ Object
22 23 24 25 26 27 |
# File 'lib/adhearsion/rayo/command/join.rb', line 22 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.
30 |
# File 'lib/adhearsion/rayo/command/join.rb', line 30 attribute :media, Symbol |
#mixer_name ⇒ String
Returns the mixer name to join.
18 |
# File 'lib/adhearsion/rayo/command/join.rb', line 18 attribute :mixer_name |
#rayo_attributes ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/adhearsion/rayo/command/join.rb', line 32 def rayo_attributes { 'call-uri' => call_uri, 'mixer-name' => mixer_name, 'direction' => direction, 'media' => media } end |