Class: Google::Apis::Adexchangebuyer2V2beta1::Image
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::Adexchangebuyer2V2beta1::Image
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer2_v2beta1/classes.rb,
 generated/google/apis/adexchangebuyer2_v2beta1/representations.rb,
 generated/google/apis/adexchangebuyer2_v2beta1/representations.rb
Overview
An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved.
Instance Attribute Summary collapse
- 
  
    
      #height  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Image height in pixels. 
- 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The URL of the image. 
- 
  
    
      #width  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Image width in pixels. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Image 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Image. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Image
Returns a new instance of Image
| 1118 1119 1120 | # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1118 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#height ⇒ Fixnum
Image height in pixels.
Corresponds to the JSON property height
| 1106 1107 1108 | # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1106 def height @height end | 
#url ⇒ String
The URL of the image.
Corresponds to the JSON property url
| 1111 1112 1113 | # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1111 def url @url end | 
#width ⇒ Fixnum
Image width in pixels.
Corresponds to the JSON property width
| 1116 1117 1118 | # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1116 def width @width end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1123 1124 1125 1126 1127 | # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1123 def update!(**args) @height = args[:height] if args.key?(:height) @url = args[:url] if args.key?(:url) @width = args[:width] if args.key?(:width) end |