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