module Ethon::Easy::Http::Actionable

def setup(easy)

Parameters:
  • easy (easy) -- the easy to setup.

Other tags:
    Example: setup. -
def setup(easy)
  @easy = easy
  # Order is important, @easy will be used to provide access to options
  # relevant to the following operations (like whether or not to escape
  # values).
  easy.set_attributes(options)
  set_form(easy) unless form.empty?
  if params.empty?
    easy.url = url
  else
    set_params(easy)
  end
end