Class: Mushikago::Mitsubachi::HttpFetchRequest
- Inherits:
-
Request
- Object
- Http::Request
- Request
- Mushikago::Mitsubachi::HttpFetchRequest
- Defined in:
- lib/mushikago/mitsubachi/http_fetch_request.rb
Instance Attribute Summary
Attributes inherited from Http::Request
headers, host, http_method, params, path, port
Instance Method Summary (collapse)
-
- (HttpFetchRequest) initialize(project_name, url, script_name, options = {})
constructor
A new instance of HttpFetchRequest.
- - (Object) method_name
- - (Object) new_http_request
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
- (HttpFetchRequest) initialize(project_name, url, script_name, options = {})
A new instance of HttpFetchRequest
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/mushikago/mitsubachi/http_fetch_request.rb', line 15 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) end |
Instance Method Details
- (Object) method_name
5 |
# File 'lib/mushikago/mitsubachi/http_fetch_request.rb', line 5 def method_name; 'http/fetch.json' end |
- (Object) new_http_request
27 28 29 |
# File 'lib/mushikago/mitsubachi/http_fetch_request.rb', line 27 def new_http_request new_http_post_request(path) end |