Class: Tavily::Image
Overview
An image associated with a search result. Tavily returns images either as bare URL strings or as objects with a description; this normalizes both.
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
-
#description ⇒ String?
Generated description (when image descriptions requested).
-
#url ⇒ String?
Image URL.
Methods inherited from Object
#==, #[], attribute, #dig, #hash, #initialize, #inspect, #key?, #to_h
Constructor Details
This class inherits a constructor from Tavily::Object
Instance Method Details
#description ⇒ String?
Returns generated description (when image descriptions requested).
18 |
# File 'lib/tavily/responses.rb', line 18 attribute :description |
#url ⇒ String?
Returns image URL.
16 |
# File 'lib/tavily/responses.rb', line 16 attribute :url |