Class: Ethon::Easy::Http::Patch

Inherits:
Object
  • Object
show all
Includes:
Actionable, Postable
Defined in:
lib/ethon/easy/http/patch.rb

Overview

This class knows everything about making PATCH requests.

Constant Summary

Constants included from Actionable

Actionable::QUERY_OPTIONS

Instance Method Summary collapse

Methods included from Postable

#set_form

Methods included from Actionable

#form, #initialize, #options, #params, #params_encoding, #query_options, #set_form, #set_params, #url

Instance Method Details

#setup(easy) ⇒ Object

Setup easy to make a PATCH request.

Examples:

Setup.

patch.setup(easy)

Parameters:

  • easy (Easy)

    The easy to setup.


16
17
18
19
# File 'lib/ethon/easy/http/patch.rb', line 16

def setup(easy)
  super
  easy.customrequest = "PATCH"
end