Class: Mushikago::Mitsubachi::HttpFetchRequest
- Inherits:
-
Http::PostRequest
- Object
- Http::Request
- Http::PostRequest
- Mushikago::Mitsubachi::HttpFetchRequest
- 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
-
#initialize(project_name, url, script_name, options = {}) ⇒ HttpFetchRequest
constructor
A new instance of HttpFetchRequest.
- #path ⇒ Object
Methods inherited from Http::PostRequest
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, ={} super() self.project_name = project_name self.url = url self.script_name = script_name self.method = [:method] if .has_key?(:method) self.entity_parameter = [:entity_parameter] if .has_key?(:entity_parameter) self.follow_redirect = [:follow_redirect] if .has_key?(:follow_redirect) self.parameters = [:parameters] if .has_key?(:parameters) self.header_overwrite = [:header_overwrite] if .has_key?(:header_overwrite) self. = [:cookiejar] if .has_key?(:cookiejar) self.parent_request_id = [:parent_request_id] if .has_key?(:parent_request_id) self.group_id = [:group_id] if .has_key?(:group_id) self.unique_key = [:unique_key] if .has_key?(:unique_key) self.unique_key_expires = [:unique_key_expires] if .has_key?(:unique_key_expires) self.encode = [:encode] if .has_key?(:encode) end |
Instance Method Details
#path ⇒ Object
5 |
# File 'lib/mushikago/mitsubachi/http_fetch_request.rb', line 5 def path; '/1/mitsubachi/http/fetch' end |