Class: ExceptionNotificationServer::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/exception_notification_server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_callbackObject

Returns the value of attribute access_callback.



15
16
17
# File 'lib/exception_notification_server.rb', line 15

def access_callback
  @access_callback
end

#nameObject

Returns the value of attribute name.



15
16
17
# File 'lib/exception_notification_server.rb', line 15

def name
  @name
end

#passwordObject

Returns the value of attribute password.



15
16
17
# File 'lib/exception_notification_server.rb', line 15

def password
  @password
end

#time_formatObject

Returns the value of attribute time_format.



15
16
17
# File 'lib/exception_notification_server.rb', line 15

def time_format
  @time_format
end