Sha256: 47b79f699e3a3e0b071b161904d5b0747557babab93f135396531c132f3c3207

Contents?: true

Size: 644 Bytes

Versions: 6

Compression:

Stored size: 644 Bytes

Contents

module Ethon
  module Easies
    # This module contains the logic to prepare and perform
    # an easy.
    module Operations

      # Perform the easy request.
      #
      # @example Perform the request.
      #   easy.perform
      #
      # @return [ Integer ] The return code.
      def perform
        @return_code = Curl.easy_perform(handle)
        complete
        @return_code
      end

      # Prepare the easy. Options, headers and callbacks
      # were set.
      #
      # @example Prepare easy.
      #   easy.prepare
      def prepare
        set_options
        set_headers
        set_callbacks
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ethon-0.3.0 lib/ethon/easies/operations.rb
ethon-0.2.0 lib/ethon/easies/operations.rb
ethon-0.1.0 lib/ethon/easies/operations.rb
ethon-0.0.3 lib/ethon/easies/operations.rb
ethon-0.0.2 lib/ethon/easies/operations.rb
ethon-0.0.1 lib/ethon/easies/operations.rb