Sha256: f2c71612e07c3b77ee2069915827890fe18f7ca6addce9a1500d17ebf1cdefcd

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

# frozen_string_literal: true

require "faraday"

module ActiveWebhook
  module Delivery
    class FaradayAdapter < BaseAdapter
      def status_code
        response.status
      end

      protected

      def deliver!
        Faraday.post(url, body, headers)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_webhook-1.0.0 lib/active_webhook/delivery/faraday_adapter.rb