class Google::Apis::CustomsearchV1::Result::Image
Image
belonging to a custom search result.
Attributes
The size of the image, in pixels. Corresponds to the JSON property `byteSize` @return [Fixnum]
A URL pointing to the webpage hosting the image. Corresponds to the JSON property `contextLink` @return [String]
The height of the image, in pixels. Corresponds to the JSON property `height` @return [Fixnum]
The height of the thumbnail image, in pixels. Corresponds to the JSON property `thumbnailHeight` @return [Fixnum]
A URL to the thumbnail image. Corresponds to the JSON property `thumbnailLink` @return [String]
The width of the thumbnail image, in pixels. Corresponds to the JSON property `thumbnailWidth` @return [Fixnum]
The width of the image, in pixels. Corresponds to the JSON property `width` @return [Fixnum]
Public Class Methods
# File lib/google/apis/customsearch_v1/classes.rb, line 289 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/customsearch_v1/classes.rb, line 294 def update!(**args) @byte_size = args[:byte_size] if args.key?(:byte_size) @context_link = args[:context_link] if args.key?(:context_link) @height = args[:height] if args.key?(:height) @thumbnail_height = args[:thumbnail_height] if args.key?(:thumbnail_height) @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link) @thumbnail_width = args[:thumbnail_width] if args.key?(:thumbnail_width) @width = args[:width] if args.key?(:width) end