Module: Ethon::Easies::Operations
- Included in:
- Ethon::Easy
- Defined in:
- lib/ethon/easies/operations.rb
Overview
This module contains the logic to prepare and perform an easy.
Instance Method Summary collapse
-
#perform ⇒ Integer
Perform the easy request.
-
#prepare ⇒ Object
Prepare the easy.
Instance Method Details
#perform ⇒ Integer
Perform the easy request.
13 14 15 16 17 |
# File 'lib/ethon/easies/operations.rb', line 13 def perform @return_code = Curl.easy_perform(handle) complete @return_code end |
#prepare ⇒ Object
Prepare the easy. Options, headers and callbacks were set.
24 25 26 27 28 |
# File 'lib/ethon/easies/operations.rb', line 24 def prepare set_headers set_callbacks end |