Class: Google::Apis::PagespeedonlineV4::PagespeedApiImageV4
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PagespeedonlineV4::PagespeedApiImageV4
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pagespeedonline_v4/classes.rb,
 generated/google/apis/pagespeedonline_v4/representations.rb,
 generated/google/apis/pagespeedonline_v4/representations.rb
Defined Under Namespace
Classes: PageRect
Instance Attribute Summary collapse
- 
  
    
      #data  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Image data base64 encoded. 
- 
  
    
      #height  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Height of screenshot in pixels. 
- 
  
    
      #key  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Unique string key, if any, identifying this image. 
- 
  
    
      #mime_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Mime type of image data (e.g. "image/jpeg"). 
- 
  
    
      #page_rect  ⇒ Google::Apis::PagespeedonlineV4::PagespeedApiImageV4::PageRect 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property page_rect.
- 
  
    
      #width  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Width of screenshot in pixels. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ PagespeedApiImageV4 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of PagespeedApiImageV4. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PagespeedApiImageV4
Returns a new instance of PagespeedApiImageV4
| 210 211 212 | # File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 210 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#data ⇒ String
Image data base64 encoded.
Corresponds to the JSON property data
NOTE: Values are automatically base64 encoded/decoded in the client library.
| 183 184 185 | # File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 183 def data @data end | 
#height ⇒ Fixnum
Height of screenshot in pixels.
Corresponds to the JSON property height
| 188 189 190 | # File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 188 def height @height end | 
#key ⇒ String
Unique string key, if any, identifying this image.
Corresponds to the JSON property key
| 193 194 195 | # File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 193 def key @key end | 
#mime_type ⇒ String
Mime type of image data (e.g. "image/jpeg").
Corresponds to the JSON property mime_type
| 198 199 200 | # File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 198 def mime_type @mime_type end | 
#page_rect ⇒ Google::Apis::PagespeedonlineV4::PagespeedApiImageV4::PageRect
Corresponds to the JSON property page_rect
| 203 204 205 | # File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 203 def page_rect @page_rect end | 
#width ⇒ Fixnum
Width of screenshot in pixels.
Corresponds to the JSON property width
| 208 209 210 | # File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 208 def width @width end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 215 216 217 218 219 220 221 222 | # File 'generated/google/apis/pagespeedonline_v4/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 |