Sha256: 320ba332d2efd9fbe25d9261ae829af9b816b590a83132b6fe0ae6b22d41e5ca

Contents?: true

Size: 240 Bytes

Versions: 3

Compression:

Stored size: 240 Bytes

Contents

require 'active_support/configurable'

module Webhooker
  include ActiveSupport::Configurable
  config_accessor :payload_key, :attributes_method

  configure do |c|
    c.payload_key = 'payload'
    c.attributes_method = :as_json
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
webhooker-0.5.0 lib/webhooker/config.rb
webhooker-0.4.0 lib/webhooker/config.rb
webhooker-0.3.0 lib/webhooker/config.rb