class Google::Apis::PagespeedonlineV2::Image

Attributes

data[RW]

Image data base64 encoded. Corresponds to the JSON property `data` @return [String]

height[RW]

Height of screenshot in pixels. Corresponds to the JSON property `height` @return [Fixnum]

key[RW]

Unique string key, if any, identifying this image. Corresponds to the JSON property `key` @return [String]

mime_type[RW]

Mime type of image data (e.g. “image/jpeg”). Corresponds to the JSON property `mime_type` @return [String]

page_rect[RW]

The region of the page that is captured by this image, with dimensions measured in CSS pixels. Corresponds to the JSON property `page_rect` @return [Google::Apis::PagespeedonlineV2::Image::PageRect]

width[RW]

Width of screenshot in pixels. Corresponds to the JSON property `width` @return [Fixnum]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/pagespeedonline_v2/classes.rb, line 215
def update!(**args)
  @data = args[:data] if args.key?(:data)
  @height = args[:height] if args.key?(:height)
  @key = args[:key] if args.key?(:key)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
  @page_rect = args[:page_rect] if args.key?(:page_rect)
  @width = args[:width] if args.key?(:width)
end