Class: Mushikago::Mitsubachi::HttpPushRequest

Inherits:
Http::PostRequest show all
Defined in:
lib/mushikago/mitsubachi/http_push_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, file_name, file_input_key, options = {}) ⇒ HttpPushRequest

Returns a new instance of HttpPushRequest.



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

def initialize project_name, url, script_name, file_name, file_input_key, options={}
  super(options)
  self.project_name = project_name
  self.url = url
  self.script_name = script_name
  self.file_name = file_name
  self.file_input_key = file_input_key
  self.entity_parameter = options[:entity_parameter] if options.has_key?(:entity_parameter)
  self.parameters = options[:parameters] if options.has_key?(:parameters)
  self.header_overwrite = options[:header_overwrite] if options.has_key?(:header_overwrite)
  self.mime_type = options[:mime_type] if options.has_key?(:mime_type)
  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_push_request.rb', line 5

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