Class: Google::Apis::ToolresultsV1beta3::Thumbnail

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/toolresults_v1beta3/classes.rb,
generated/google/apis/toolresults_v1beta3/representations.rb,
generated/google/apis/toolresults_v1beta3/representations.rb

Overview

A single thumbnail, with its size and format.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Thumbnail

Returns a new instance of Thumbnail



1894
1895
1896
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1894

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#content_typeString

The thumbnail's content type, i.e. "image/png". Always set. Corresponds to the JSON property contentType

Returns:

  • (String)


1871
1872
1873
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1871

def content_type
  @content_type
end

#dataString

The thumbnail file itself. That is, the bytes here are precisely the bytes that make up the thumbnail file; they can be served as an image as-is (with the appropriate content type.) Always set. Corresponds to the JSON property data NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


1880
1881
1882
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1880

def data
  @data
end

#height_pxFixnum

The height of the thumbnail, in pixels. Always set. Corresponds to the JSON property heightPx

Returns:

  • (Fixnum)


1886
1887
1888
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1886

def height_px
  @height_px
end

#width_pxFixnum

The width of the thumbnail, in pixels. Always set. Corresponds to the JSON property widthPx

Returns:

  • (Fixnum)


1892
1893
1894
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1892

def width_px
  @width_px
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1899
1900
1901
1902
1903
1904
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1899

def update!(**args)
  @content_type = args[:content_type] if args.key?(:content_type)
  @data = args[:data] if args.key?(:data)
  @height_px = args[:height_px] if args.key?(:height_px)
  @width_px = args[:width_px] if args.key?(:width_px)
end