Class: Ethon::Easy::Http::Custom
- Inherits:
-
Object
- Object
- Ethon::Easy::Http::Custom
- Includes:
- Actionable, Postable
- Defined in:
- lib/ethon/easy/http/custom.rb
Overview
This class knows everything about making requests for custom HTTP verbs.
Constant Summary
Constants included from Actionable
Instance Method Summary collapse
-
#initialize(verb, url, options) ⇒ Custom
constructor
A new instance of Custom.
-
#setup(easy) ⇒ Object
Setup easy to make a request.
Methods included from Postable
Methods included from Actionable
#form, #options, #params, #params_encoding, #query_options, #set_form, #set_params, #url
Constructor Details
#initialize(verb, url, options) ⇒ Custom
Returns a new instance of Custom.
11 12 13 14 |
# File 'lib/ethon/easy/http/custom.rb', line 11 def initialize(verb, url, ) @verb = verb super(url, ) end |
Instance Method Details
#setup(easy) ⇒ Object
Setup easy to make a request.
22 23 24 25 |
# File 'lib/ethon/easy/http/custom.rb', line 22 def setup(easy) super easy.customrequest = @verb end |