Class Facebooker::Service::TyphoeusMultiService
In: lib/facebooker/service/typhoeus_multi_service.rb
Parent: Facebooker::Service::TyphoeusService

Methods

Public Class methods

[Source]

# File lib/facebooker/service/typhoeus_multi_service.rb, line 3
  def initialize
    @result_objects = []
  end

Public Instance methods

[Source]

# File lib/facebooker/service/typhoeus_multi_service.rb, line 18
  def add_result(obj)
    @result_objects << obj
  end

[Source]

# File lib/facebooker/service/typhoeus_multi_service.rb, line 7
  def parse_results?
    false
  end

[Source]

# File lib/facebooker/service/typhoeus_multi_service.rb, line 14
  def perform_post(url,params)
    add_result(self.class.async_post(:base_uri=>url,:params=>params))
  end

[Source]

# File lib/facebooker/service/typhoeus_multi_service.rb, line 22
  def process
    # we need to access all objects to make sure the proxy has made the request
    @result_objects.each(&:nil?)
    @result_objects = []
  end

[Validate]