Sha256: 5a7de8e020f0afceb8584f35304caeafc7a25edc6231e87cd87024d550a00764

Contents?: true

Size: 599 Bytes

Versions: 11

Compression:

Stored size: 599 Bytes

Contents

require 'rubygems'
require 'coderay'
require 'exception_notification_server/engine'

module ExceptionNotificationServer
  def self.configure(&_block)
    yield configuration
  end

  def self.configuration
    @configuration ||= ExceptionNotificationServer::Configuration.new
  end

  class Configuration
    attr_accessor :name, :password, :access_callback, :time_format

    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
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
exception_notification_server-0.0.11 lib/exception_notification_server.rb
exception_notification_server-0.0.10 lib/exception_notification_server.rb
exception_notification_server-0.0.9 lib/exception_notification_server.rb
exception_notification_server-0.0.8 lib/exception_notification_server.rb
exception_notification_server-0.0.7 lib/exception_notification_server.rb
exception_notification_server-0.0.6 lib/exception_notification_server.rb
exception_notification_server-0.0.5 lib/exception_notification_server.rb
exception_notification_server-0.0.4 lib/exception_notification_server.rb
exception_notification_server-0.0.3 lib/exception_notification_server.rb
exception_notification_server-0.0.2 lib/exception_notification_server.rb
exception_notification_server-0.0.1 lib/exception_notification_server.rb