Class: BingSearch::ImageResult

Inherits:
Result show all
Defined in:
lib/bing-search/models.rb

Instance Attribute Summary collapse

Attributes inherited from Result

#id

Method Summary

Methods inherited from Model

#initialize, #set

Constructor Details

This class inherits a constructor from BingSearch::Model

Instance Attribute Details

#content_typeString Also known as: media_type

Internet media type (MIME type) of the image, if available

Returns:

  • (String)


96
97
98
# File 'lib/bing-search/models.rb', line 96

def content_type
  @content_type
end

#display_urlString

URL to display to the user. Omits the scheme if HTTP.

Returns:

  • (String)


80
81
82
# File 'lib/bing-search/models.rb', line 80

def display_url
  @display_url
end

#file_sizeInteger?

In bytes, if available

Returns:

  • (Integer, nil)


92
93
94
# File 'lib/bing-search/models.rb', line 92

def file_size
  @file_size
end

#heightInteger?

In pixels, if available

Returns:

  • (Integer, nil)


88
89
90
# File 'lib/bing-search/models.rb', line 88

def height
  @height
end

#media_urlString Also known as: url

URL of the image

Returns:

  • (String)


71
72
73
# File 'lib/bing-search/models.rb', line 71

def media_url
  @media_url
end

#source_urlString

URL of the website that contains the image

Returns:

  • (String)


76
77
78
# File 'lib/bing-search/models.rb', line 76

def source_url
  @source_url
end

#thumbnailImage

Returns:



100
101
102
# File 'lib/bing-search/models.rb', line 100

def thumbnail
  @thumbnail
end

#titleString

Returns:

  • (String)


67
68
69
# File 'lib/bing-search/models.rb', line 67

def title
  @title
end

#widthInteger?

In pixels, if available

Returns:

  • (Integer, nil)


84
85
86
# File 'lib/bing-search/models.rb', line 84

def width
  @width
end