Class: Ethon::Easy::Http::Get

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

Overview

This class knows everything about making GET 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 GET request.

Examples:

Setup.

get.set_params(easy)

Parameters:

  • easy (Easy)

    The easy to setup.



17
18
19
20
# File 'lib/ethon/easy/http/get.rb', line 17

def setup(easy)
  super
  easy.customrequest = "GET" unless form.empty?
end