Class: Google::Apis::CustomsearchV1::Promotion::Image
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CustomsearchV1::Promotion::Image
 
- Defined in:
- generated/google/apis/customsearch_v1/classes.rb,
 generated/google/apis/customsearch_v1/representations.rb,
 generated/google/apis/customsearch_v1/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #height  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property height.
- 
  
    
      #source  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property source.
- 
  
    
      #width  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property width.
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Image 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Image. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Image
Returns a new instance of Image
| 185 186 187 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 185 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#height ⇒ Fixnum
Corresponds to the JSON property height
| 173 174 175 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 173 def height @height end | 
#source ⇒ String
Corresponds to the JSON property source
| 178 179 180 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 178 def source @source end | 
#width ⇒ Fixnum
Corresponds to the JSON property width
| 183 184 185 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 183 def width @width end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 190 191 192 193 194 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 190 def update!(**args) @height = args[:height] if args.key?(:height) @source = args[:source] if args.key?(:source) @width = args[:width] if args.key?(:width) end |