Sha256: 16e56ebb7ea129c08a1bc9853238bf3f868cff042783b9206df05556173398e6

Contents?: true

Size: 292 Bytes

Versions: 35

Compression:

Stored size: 292 Bytes

Contents

module BridgeCache::Webhooks
  class Request
    def initialize(payload)
      @payload = payload
    end

    def process
      message = BridgeCache::Webhooks::Message.new(@payload)
      message.payload_class.public_send("webhook_#{@payload['trigger']}".to_sym, message)
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
bridge_cache-0.3.19 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.17 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.16 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.15 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.14 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.13 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.12 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.11 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.10 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.9 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.8 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.7 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.6 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.5 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.4 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.3 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.2 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.01 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.3.0 app/lib/bridge_cache/webhooks/request.rb
bridge_cache-0.2.8 app/lib/bridge_cache/webhooks/request.rb