Class: ExceptionNotificationServer::Configuration
- Inherits:
-
Object
- Object
- ExceptionNotificationServer::Configuration
- Defined in:
- lib/exception_notification_server.rb
Instance Attribute Summary collapse
-
#access_callback ⇒ Object
Returns the value of attribute access_callback.
-
#name ⇒ Object
Returns the value of attribute name.
-
#password ⇒ Object
Returns the value of attribute password.
-
#time_format ⇒ Object
Returns the value of attribute time_format.
Instance Method Summary collapse
-
#initialize(name: 'webhook', password: '', access_callback: nil, time_format: '%m/%d/%Y %H:%M:%S') ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(name: 'webhook', password: '', access_callback: nil, time_format: '%m/%d/%Y %H:%M:%S') ⇒ Configuration
17 18 19 |
# File 'lib/exception_notification_server.rb', line 17 def initialize(name: 'webhook', password: '', access_callback: nil, time_format: '%m/%d/%Y %H:%M:%S') @name, @password, @access_callback, @time_format = name, password, access_callback, time_format end |
Instance Attribute Details
#access_callback ⇒ Object
Returns the value of attribute access_callback.
15 16 17 |
# File 'lib/exception_notification_server.rb', line 15 def access_callback @access_callback end |
#name ⇒ Object
Returns the value of attribute name.
15 16 17 |
# File 'lib/exception_notification_server.rb', line 15 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
15 16 17 |
# File 'lib/exception_notification_server.rb', line 15 def password @password end |
#time_format ⇒ Object
Returns the value of attribute time_format.
15 16 17 |
# File 'lib/exception_notification_server.rb', line 15 def time_format @time_format end |