Class: Mushikago::Tombo::Client
- Inherits:
-
Http::Client
- Object
- Http::Client
- Mushikago::Tombo::Client
- Defined in:
- lib/mushikago/tombo/client.rb
Overview
Tomboサービスを利用する
Instance Attribute Summary
Attributes inherited from Http::Client
Instance Method Summary (collapse)
-
- (Mushikago::Http::Response) capture(url, options = {})
指定したURLのキャプチャを取得する.
-
- (Mushikago::Http::Response) captures(options = {})
いままでキャプチャした画像の情報を取得する.
-
- (Mushikago::Http::Response) delete(id, options = {})
指定した画像を削除する.
-
- (Mushikago::Http::Response) info(options = {})
APIの使用状況を取得する.
Methods inherited from Http::Client
Constructor Details
This class inherits a constructor from Mushikago::Http::Client
Instance Method Details
- (Mushikago::Http::Response) capture(url, options = {})
指定したURLのキャプチャを取得する
32 33 34 35 |
# File 'lib/mushikago/tombo/client.rb', line 32 def capture url, ={} request = CaptureRequest.new(url, ) send_request(request) end |
- (Mushikago::Http::Response) captures(options = {})
いままでキャプチャした画像の情報を取得する
48 49 50 51 |
# File 'lib/mushikago/tombo/client.rb', line 48 def captures ={} request = CapturesRequest.new() send_request(request) end |
- (Mushikago::Http::Response) delete(id, options = {})
指定した画像を削除する
60 61 62 63 |
# File 'lib/mushikago/tombo/client.rb', line 60 def delete id, ={} request = DeleteRequest.new(id, ) send_request(request) end |
- (Mushikago::Http::Response) info(options = {})
APIの使用状況を取得する
71 72 73 74 |
# File 'lib/mushikago/tombo/client.rb', line 71 def info ={} request = InfoRequest.new() send_request(request) end |