Class: FSR::App::FSSleep
- Inherits:
-
Application
- Object
- Application
- FSR::App::FSSleep
- Defined in:
- lib/fsr/app/fs_sleep.rb
Instance Attribute Summary collapse
-
#milliseconds ⇒ Object
readonly
Returns the value of attribute milliseconds.
Instance Method Summary collapse
- #arguments ⇒ Object
-
#initialize(milliseconds) ⇒ FSSleep
constructor
A new instance of FSSleep.
- #sendmsg ⇒ Object
Methods inherited from Application
Constructor Details
#initialize(milliseconds) ⇒ FSSleep
Returns a new instance of FSSleep.
8 9 10 11 |
# File 'lib/fsr/app/fs_sleep.rb', line 8 def initialize(milliseconds) # milliseconds to sleep @milliseconds = milliseconds end |
Instance Attribute Details
#milliseconds ⇒ Object (readonly)
Returns the value of attribute milliseconds.
6 7 8 |
# File 'lib/fsr/app/fs_sleep.rb', line 6 def milliseconds @milliseconds end |
Instance Method Details
#arguments ⇒ Object
12 13 14 |
# File 'lib/fsr/app/fs_sleep.rb', line 12 def arguments [@milliseconds] end |
#sendmsg ⇒ Object
16 17 18 |
# File 'lib/fsr/app/fs_sleep.rb', line 16 def sendmsg "call-command: execute\nexecute-app-name: sleep\nexecute-app-arg: %s\n\n" % [arguments.join(" ")] end |