Sha256: 5121fff8e536475f75611437729cfa2d459a38c61addb0539bfc70930dcf4607

Contents?: true

Size: 515 Bytes

Versions: 7

Compression:

Stored size: 515 Bytes

Contents

module Ethon
  module Easies
    module Http

      # This class knows everything about making PATCH requests.
      class Patch
        include Ethon::Easies::Http::Actionable
        include Ethon::Easies::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

7 entries across 7 versions & 1 rubygems

Version Path
ethon-0.4.2 lib/ethon/easies/http/patch.rb
ethon-0.4.1 lib/ethon/easies/http/patch.rb
ethon-0.4.0 lib/ethon/easies/http/patch.rb
ethon-0.3.0 lib/ethon/easies/http/patch.rb
ethon-0.2.0 lib/ethon/easies/http/patch.rb
ethon-0.1.0 lib/ethon/easies/http/patch.rb
ethon-0.0.3 lib/ethon/easies/http/patch.rb