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