Sha256: aed8f196b14a8afe3b7c8f599f11b3bfd3fa44a3fe1a7f80b0e3e470b0fe6a8d

Contents?: true

Size: 475 Bytes

Versions: 2

Compression:

Stored size: 475 Bytes

Contents

require "webhookr/engine"

module Webhookr
  extend ActiveSupport::Autoload

  autoload :InvalidPayloadError
  autoload :AdapterResponse
  autoload :Service
  autoload :VERSION

  class << self
    def adapters
      @adapters ||= HashWithIndifferentAccess.new
    end

    def config
      @config ||= defined?(Rails) ? Rails.application.config.webhookr :
                                    ActiveSupport::OrderedOptions.new
    end
  end
end

require "webhookr/services"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webhookr-0.1.0 lib/webhookr.rb
webhookr-0.0.2 lib/webhookr.rb