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.
9 10 11 |
# File 'lib/badger_vision/client.rb', line 9 def initialize(request_options: {}) = end |
Class Method Details
.image_information(url) ⇒ Object
Extract tags from a given image URL
14 15 16 |
# File 'lib/badger_vision/client.rb', line 14 def self.image_information(url) new(request_options: {url: url}).image_information end |
Instance Method Details
#image_information ⇒ Object
18 19 20 21 |
# File 'lib/badger_vision/client.rb', line 18 def image_information body = Request.post("cgi-bin/image.py", ) ImageInformationResponse.new(parse_response(body)) end |