Class: BadgerVision::Client
- Inherits:
-
Object
- Object
- BadgerVision::Client
- Defined in:
- lib/badger_vision/client.rb
Defined Under Namespace
Classes: ImageInformationResponse, Scene
Class Method Summary collapse
-
.image_information(url) ⇒ Object
Extract tags from a given image URL.
Instance Method Summary collapse
- #image_information ⇒ Object
-
#initialize(request_options: {}) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(request_options: {}) ⇒ Client
Returns a new instance of Client.
8 9 10 |
# File 'lib/badger_vision/client.rb', line 8 def initialize(request_options: {}) @request_options = end |
Class Method Details
.image_information(url) ⇒ Object
Extract tags from a given image URL
13 14 15 |
# File 'lib/badger_vision/client.rb', line 13 def self.image_information(url) new(request_options: {url: url}).image_information end |
Instance Method Details
#image_information ⇒ Object
17 18 19 20 |
# File 'lib/badger_vision/client.rb', line 17 def image_information body = Request.post("cgi-bin/image.py", @request_options) ImageInformationResponse.new(parse_response(body)) end |