Class: FSR::App::Conference
- Inherits:
-
Application
- Object
- Application
- FSR::App::Conference
- Defined in:
- lib/fsr/app/conference.rb
Instance Attribute Summary collapse
-
#profile ⇒ Object
readonly
Returns the value of attribute profile.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Class Method Summary collapse
Instance Method Summary collapse
- #arguments ⇒ Object
-
#initialize(conference_name, conference_profile = nil) ⇒ Conference
constructor
A new instance of Conference.
Methods inherited from Application
#app_name, #raw, #sendmsg, #to_s
Constructor Details
#initialize(conference_name, conference_profile = nil) ⇒ Conference
Returns a new instance of Conference.
8 9 10 11 12 |
# File 'lib/fsr/app/conference.rb', line 8 def initialize(conference_name, conference_profile = nil) # These are options that will precede the target address @target = conference_name @profile = conference_profile || "ultrawideband" end |
Instance Attribute Details
#profile ⇒ Object (readonly)
Returns the value of attribute profile.
6 7 8 |
# File 'lib/fsr/app/conference.rb', line 6 def profile @profile end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
6 7 8 |
# File 'lib/fsr/app/conference.rb', line 6 def target @target end |
Class Method Details
.[](conference_name) ⇒ Object
22 23 24 |
# File 'lib/fsr/app/conference.rb', line 22 def self.[](conference_name) self.execute(conference_name) end |
.execute(conference_name, conference_profile = nil) ⇒ Object
18 19 20 |
# File 'lib/fsr/app/conference.rb', line 18 def self.execute(conference_name, conference_profile = nil) self.new(conference_name, conference_profile).raw end |
Instance Method Details
#arguments ⇒ Object
14 15 16 |
# File 'lib/fsr/app/conference.rb', line 14 def arguments ["%s@%s" % [@target, @profile]] end |