Parent

Typhoeus::Form

Attributes

params[RW]
traversal[R]

Public Class Methods

new(params = {}) click to toggle source
# File lib/typhoeus/form.rb, line 8
def initialize(params = {})
  @params = params
end

Public Instance Methods

multipart?() click to toggle source
# File lib/typhoeus/form.rb, line 24
def multipart?
  !traversal[:files].empty?
end
process!() click to toggle source
# File lib/typhoeus/form.rb, line 16
def process!
  # add params
  traversal[:params].each { |p| formadd_param(p[0], p[1]) }

  # add files
  traversal[:files].each { |file_args| formadd_file(*file_args) }
end
to_s() click to toggle source
# File lib/typhoeus/form.rb, line 28
def to_s
  Typhoeus::Utils.traversal_to_param_string(traversal, false)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.