Class: Facebooker::Service::TyphoeusService

Inherits:
BaseService
  • Object
show all
Includes:
Typhoeus
Defined in:
lib/facebooker/service/typhoeus_service.rb

Direct Known Subclasses

TyphoeusMultiService

Instance Method Summary (collapse)

Methods inherited from BaseService

#parse_results?, #post_params

Instance Method Details

- (Object) perform_post(url, params)



8
9
10
# File 'lib/facebooker/service/typhoeus_service.rb', line 8

def perform_post(url,params)
  self.class.post(url,:params=>post_params)
end

- (Object) post_form(url, params)



4
5
6
# File 'lib/facebooker/service/typhoeus_service.rb', line 4

def post_form(url,params)
  perform_post(url.to_s,post_params(params))
end

- (Object) post_multipart_form(url, params)



12
13
14
# File 'lib/facebooker/service/typhoeus_service.rb', line 12

def post_multipart_form(url,params)
  raise "Multipart not supported on Typhoeus"
end