class Ethon::Easy::Http::Custom
This class knows everything about making requests for custom HTTP verbs.
Public Class Methods
new(verb, url, options)
click to toggle source
Calls superclass method
Ethon::Easy::Http::Actionable.new
# File lib/ethon/easy/http/custom.rb, line 10 def initialize(verb, url, options) @verb = verb super(url, options) end
Public Instance Methods
setup(easy)
click to toggle source
Setup easy to make a request.
@example Setup.
custom.set_params(easy)
@param [ Easy ] easy The easy to setup.
Calls superclass method
Ethon::Easy::Http::Actionable#setup
# File lib/ethon/easy/http/custom.rb, line 21 def setup(easy) super easy.customrequest = @verb end