Sha256: 72c77a1dfdefa9ca3632af800353fc3b711acf04cd66a67e13f62dd8accf9ed1

Contents?: true

Size: 508 Bytes

Versions: 64

Compression:

Stored size: 508 Bytes

Contents

module Ethon
  class Easy
    module Http

      # This class knows everything about making PATCH requests.
      class Patch
        include Ethon::Easy::Http::Actionable
        include Ethon::Easy::Http::Postable

        # Setup easy to make a PATCH request.
        #
        # @example Setup.
        #   patch.setup(easy)
        #
        # @param [ Easy ] easy The easy to setup.
        def setup(easy)
          super
          easy.customrequest = "PATCH"
        end
      end
    end
  end
end

Version data entries

64 entries across 63 versions & 8 rubygems

Version Path
ethon-0.5.1 lib/ethon/easy/http/patch.rb
ethon-0.5.0 lib/ethon/easy/http/patch.rb
ethon-0.4.4 lib/ethon/easy/http/patch.rb
ethon-0.4.3 lib/ethon/easy/http/patch.rb