Class: Mushikago::Tombo::CaptureRequest
- Inherits:
-
Http::PostRequest
- Object
- Http::Request
- Http::PostRequest
- Mushikago::Tombo::CaptureRequest
- Defined in:
- lib/mushikago/tombo/capture_request.rb
Overview
キャプチャリクエスト
Instance Attribute Summary
Attributes inherited from Http::Request
headers, host, params, path, port
Instance Method Summary (collapse)
-
- (CaptureRequest) initialize(url, options = {})
constructor
A new instance of CaptureRequest.
- - (Object) path
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
- (CaptureRequest) initialize(url, options = {})
A new instance of CaptureRequest
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/mushikago/tombo/capture_request.rb', line 22 def initialize url, ={} super() self.url = url self.image_format = [:image_format] if .has_key?(:image_format) self.image_quality = [:image_quality] if .has_key?(:image_quality) self.thumbnail = [:thumbnail] if .has_key?(:thumbnail) self. = [:tags] if .has_key?(:tags) self.useragent = [:useragent] if .has_key?(:useragent) @headers['Content-type'] = 'application/x-www-form-urlencoded; charset=utf-8' end |
Instance Method Details
- (Object) path
6 |
# File 'lib/mushikago/tombo/capture_request.rb', line 6 def path; '/1/tombo/capture' end |