Class: FSR::App::Playback
- Inherits:
-
Application
- Object
- Application
- FSR::App::Playback
- Includes:
- FileMethods
- Defined in:
- lib/fsr/app/playback.rb
Instance Attribute Summary collapse
-
#wavfile ⇒ Object
readonly
Returns the value of attribute wavfile.
Instance Method Summary collapse
- #arguments ⇒ Object
-
#initialize(wavfile) ⇒ Playback
constructor
A new instance of Playback.
- #sendmsg ⇒ Object
Methods included from FileMethods
Methods inherited from Application
Constructor Details
#initialize(wavfile) ⇒ Playback
Returns a new instance of Playback.
11 12 13 14 15 |
# File 'lib/fsr/app/playback.rb', line 11 def initialize(wavfile) # wav file you wish to play, full path test_files wavfile @wavfile = wavfile end |
Instance Attribute Details
#wavfile ⇒ Object (readonly)
Returns the value of attribute wavfile.
9 10 11 |
# File 'lib/fsr/app/playback.rb', line 9 def wavfile @wavfile end |
Instance Method Details
#arguments ⇒ Object
17 18 19 |
# File 'lib/fsr/app/playback.rb', line 17 def arguments @wavfile end |
#sendmsg ⇒ Object
21 22 23 |
# File 'lib/fsr/app/playback.rb', line 21 def sendmsg "call-command: execute\nexecute-app-name: %s\nexecute-app-arg: %s\nevent-lock:true\n\n" % [app_name, arguments] end |