Class: RestFtpDaemon::Notification
- Inherits:
-
Object
- Object
- RestFtpDaemon::Notification
- Includes:
- BmcDaemonLib::LoggerHelper, CommonHelpers
- Defined in:
- lib/rest-ftp-daemon/notification.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#job ⇒ Object
Returns the value of attribute job.
-
#job_id ⇒ Object
Class options.
-
#message ⇒ Object
Returns the value of attribute message.
-
#signal ⇒ Object
Returns the value of attribute signal.
-
#status ⇒ Object
Returns the value of attribute status.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, params) ⇒ Notification
constructor
A new instance of Notification.
Methods included from CommonHelpers
#dashboard_url, #exception_to_error, #format_bytes, #identifier, #underscore
Constructor Details
#initialize(url, params) ⇒ Notification
Returns a new instance of Notification.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rest-ftp-daemon/notification.rb', line 19 def initialize url, params # Remember params @url = url @params = params # Generate a random key @id = identifier(NOTIFY_IDENTIFIER_LEN) @jid = nil # Logger log_pipe :notify # Handle the notification log_info "initialized [#{@url}]" process end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
13 14 15 |
# File 'lib/rest-ftp-daemon/notification.rb', line 13 def error @error end |
#job ⇒ Object
Returns the value of attribute job.
17 18 19 |
# File 'lib/rest-ftp-daemon/notification.rb', line 17 def job @job end |
#job_id ⇒ Object
Class options
11 12 13 |
# File 'lib/rest-ftp-daemon/notification.rb', line 11 def job_id @job_id end |
#message ⇒ Object
Returns the value of attribute message.
14 15 16 |
# File 'lib/rest-ftp-daemon/notification.rb', line 14 def @message end |
#signal ⇒ Object
Returns the value of attribute signal.
12 13 14 |
# File 'lib/rest-ftp-daemon/notification.rb', line 12 def signal @signal end |
#status ⇒ Object
Returns the value of attribute status.
15 16 17 |
# File 'lib/rest-ftp-daemon/notification.rb', line 15 def status @status end |
#url ⇒ Object
Returns the value of attribute url.
16 17 18 |
# File 'lib/rest-ftp-daemon/notification.rb', line 16 def url @url end |