Class: Google::Apis::ToolresultsV1beta3::Thumbnail
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ToolresultsV1beta3::Thumbnail
 
 
- 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
- 
  
    
      #content_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The thumbnail's content type, i.e.
 - 
  
    
      #data  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The thumbnail file itself.
 - 
  
    
      #height_px  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The height of the thumbnail, in pixels.
 - 
  
    
      #width_px  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The width of the thumbnail, in pixels.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Thumbnail 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Thumbnail.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Thumbnail
Returns a new instance of Thumbnail
      2491 2492 2493  | 
    
      # File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2491 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#content_type ⇒ String
The thumbnail's content type, i.e. "image/png".
Always set.
Corresponds to the JSON property contentType
      2468 2469 2470  | 
    
      # File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2468 def content_type @content_type end  | 
  
#data ⇒ String
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.
      2477 2478 2479  | 
    
      # File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2477 def data @data end  | 
  
#height_px ⇒ Fixnum
The height of the thumbnail, in pixels.
Always set.
Corresponds to the JSON property heightPx
      2483 2484 2485  | 
    
      # File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2483 def height_px @height_px end  | 
  
#width_px ⇒ Fixnum
The width of the thumbnail, in pixels.
Always set.
Corresponds to the JSON property widthPx
      2489 2490 2491  | 
    
      # File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2489 def width_px @width_px end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2496 2497 2498 2499 2500 2501  | 
    
      # File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2496 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  |