Sha256: bf338c915a7e0b5c53d6384dd0c2dfc3f08eea94c27f3334cdaa1737f39019ad

Contents?: true

Size: 535 Bytes

Versions: 2

Compression:

Stored size: 535 Bytes

Contents

module Ethon
  module Easies
    module Http

      # This class knows everything about making DELETE requests.
      class Delete
        include Ethon::Easies::Http::Actionable
        include Ethon::Easies::Http::Postable

        # Setup customrequest in order to make a delete.
        #
        # @example Setup customrequest.
        #   delete.setup(easy)
        #
        # @param [ Easy ] easy The easy to setup.
        def set_customs(easy)
          easy.customrequest = "DELETE"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ethon-0.0.2 lib/ethon/easies/http/delete.rb
ethon-0.0.1 lib/ethon/easies/http/delete.rb