postwill/postwill

View on GitHub
lib/postwill/providers/base.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Postwill
  module Providers
    class Base
      attr_reader :client

      def call(options = {})
        Dry::Monads::Right(post(options))
      rescue Exception => error
        Dry::Monads::Left(error)
      end

      private

      def post(options)
        raise NotImplementedError
      end
    end
  end
end