Class: BingSearch::Image

Inherits:
Model
  • Object
show all
Defined in:
lib/bing-search/models.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Model

#initialize, #set

Constructor Details

This class inherits a constructor from BingSearch::Model

Instance Attribute Details

#content_typeString

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

Returns:

  • (String)


241
242
243
# File 'lib/bing-search/models.rb', line 241

def content_type
  @content_type
end

#file_sizeInteger?

In bytes, if available

Returns:

  • (Integer, nil)


253
254
255
# File 'lib/bing-search/models.rb', line 253

def file_size
  @file_size
end

#heightInteger?

In pixels, if available

Returns:

  • (Integer, nil)


249
250
251
# File 'lib/bing-search/models.rb', line 249

def height
  @height
end

#media_urlString Also known as: url

URL of the image

Returns:

  • (String)


236
237
238
# File 'lib/bing-search/models.rb', line 236

def media_url
  @media_url
end

#widthInteger?

In pixels, if available

Returns:

  • (Integer, nil)


245
246
247
# File 'lib/bing-search/models.rb', line 245

def width
  @width
end