Class: FSR::App::Log
- Inherits:
-
Application
- Object
- Application
- FSR::App::Log
- Defined in:
- lib/fsr/app/log.rb
Overview
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_log
Instance Attribute Summary (collapse)
-
- (Object) level
readonly
Returns the value of attribute level.
-
- (Object) text
readonly
Returns the value of attribute text.
Instance Method Summary (collapse)
- - (Object) arguments
-
- (Log) initialize(level = 1, text = "")
constructor
A new instance of Log.
- - (Object) sendmsg
Methods inherited from Application
Constructor Details
- (Log) initialize(level = 1, text = "")
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
- (Object) level (readonly)
Returns the value of attribute level
6 7 8 |
# File 'lib/fsr/app/log.rb', line 6 def level @level end |
- (Object) text (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
- (Object) arguments
13 14 15 |
# File 'lib/fsr/app/log.rb', line 13 def arguments [@level, @text] end |
- (Object) sendmsg
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 |