class Google::Apis::CustomsearchV1::Result::Image

Image belonging to a custom search result.

Attributes

byte_size[RW]

The size of the image, in pixels. Corresponds to the JSON property `byteSize` @return [Fixnum]

height[RW]

The height of the image, in pixels. Corresponds to the JSON property `height` @return [Fixnum]

thumbnail_height[RW]

The height of the thumbnail image, in pixels. Corresponds to the JSON property `thumbnailHeight` @return [Fixnum]

thumbnail_width[RW]

The width of the thumbnail image, in pixels. Corresponds to the JSON property `thumbnailWidth` @return [Fixnum]

width[RW]

The width of the image, in pixels. Corresponds to the JSON property `width` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/customsearch_v1/classes.rb, line 289
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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