Class: BingSearch::ImageResult
- Defined in:
- lib/bing-search/models.rb
Instance Attribute Summary collapse
-
#content_type ⇒ String
(also: #media_type)
Internet media type (MIME type) of the image, if available.
-
#display_url ⇒ String
URL to display to the user.
-
#file_size ⇒ Integer?
In bytes, if available.
-
#height ⇒ Integer?
In pixels, if available.
-
#media_url ⇒ String
(also: #url)
URL of the image.
-
#source_url ⇒ String
URL of the website that contains the image.
- #thumbnail ⇒ Image
- #title ⇒ String
-
#width ⇒ Integer?
In pixels, if available.
Attributes inherited from Result
Method Summary
Methods inherited from Model
Constructor Details
This class inherits a constructor from BingSearch::Model
Instance Attribute Details
#content_type ⇒ String Also known as: media_type
Internet media type (MIME type) of the image, if available
96 97 98 |
# File 'lib/bing-search/models.rb', line 96 def content_type @content_type end |
#display_url ⇒ String
URL to display to the user. Omits the scheme if HTTP.
80 81 82 |
# File 'lib/bing-search/models.rb', line 80 def display_url @display_url end |
#file_size ⇒ Integer?
In bytes, if available
92 93 94 |
# File 'lib/bing-search/models.rb', line 92 def file_size @file_size end |
#height ⇒ Integer?
In pixels, if available
88 89 90 |
# File 'lib/bing-search/models.rb', line 88 def height @height end |
#media_url ⇒ String Also known as: url
URL of the image
71 72 73 |
# File 'lib/bing-search/models.rb', line 71 def media_url @media_url end |
#source_url ⇒ String
URL of the website that contains the image
76 77 78 |
# File 'lib/bing-search/models.rb', line 76 def source_url @source_url end |
#thumbnail ⇒ Image
100 101 102 |
# File 'lib/bing-search/models.rb', line 100 def thumbnail @thumbnail end |
#title ⇒ String
67 68 69 |
# File 'lib/bing-search/models.rb', line 67 def title @title end |
#width ⇒ Integer?
In pixels, if available
84 85 86 |
# File 'lib/bing-search/models.rb', line 84 def width @width end |