Class: Mushikago::Mitsubachi::HttpFetchRequest

Inherits:
Http::PostRequest show all
Defined in:
lib/mushikago/mitsubachi/http_fetch_request.rb

Instance Attribute Summary

Attributes inherited from Http::Request

#headers, #host, #params, #port

Instance Method Summary collapse

Methods inherited from Http::PostRequest

#http_method

Methods included from Auth::Signature

#add_signature!, #string_to_sign

Methods inherited from Http::Request

#[], #[]=, add_param, #to_http_request, #url_encoded_params

Constructor Details

#initialize(project_name, url, script_name, options = {}) ⇒ HttpFetchRequest

Returns a new instance of HttpFetchRequest.



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/mushikago/mitsubachi/http_fetch_request.rb', line 21

def initialize project_name, url, script_name, options={}
  super(options)
  self.project_name = project_name
  self.url = url
  self.script_name = script_name
  self.method = options[:method] if options.has_key?(:method)
  self.entity_parameter = options[:entity_parameter] if options.has_key?(:entity_parameter)
  self.follow_redirect = options[:follow_redirect] if options.has_key?(:follow_redirect)
  self.parameters = options[:parameters] if options.has_key?(:parameters)
  self.header_overwrite = options[:header_overwrite] if options.has_key?(:header_overwrite)
  self.cookiejar = options[:cookiejar] if options.has_key?(:cookiejar)
  self.parent_request_id = options[:parent_request_id] if options.has_key?(:parent_request_id)
  self.group_id = options[:group_id] if options.has_key?(:group_id)
  self.unique_key = options[:unique_key] if options.has_key?(:unique_key)
  self.unique_key_expires = options[:unique_key_expires] if options.has_key?(:unique_key_expires)
  self.encode = options[:encode] if options.has_key?(:encode)
end

Instance Method Details

#pathObject



5
# File 'lib/mushikago/mitsubachi/http_fetch_request.rb', line 5

def path; '/1/mitsubachi/http/fetch' end