Class: FSR::App::Conference

Inherits:
Application show all
Defined in:
lib/fsr/app/conference.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#profileObject (readonly)

Returns the value of attribute profile.



6
7
8
# File 'lib/fsr/app/conference.rb', line 6

def profile
  @profile
end

#targetObject (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

#argumentsObject



14
15
16
# File 'lib/fsr/app/conference.rb', line 14

def arguments
  ["%s@%s" % [@target, @profile]]
end