Class: Google::Apis::ManufacturersV1::Image
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ManufacturersV1::Image
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/manufacturers_v1/classes.rb,
 generated/google/apis/manufacturers_v1/representations.rb,
 generated/google/apis/manufacturers_v1/representations.rb
Overview
An image.
Instance Attribute Summary collapse
- 
  
    
      #image_url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The URL of the image. 
- 
  
    
      #status  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The status of the image. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of the image, i.e., crawled or uploaded. 
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
| 432 433 434 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 432 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#image_url ⇒ String
The URL of the image. For crawled images, this is the provided URL. For
uploaded images, this is a serving URL from Google if the image has been
processed successfully.
Corresponds to the JSON property imageUrl
| 418 419 420 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 418 def image_url @image_url end | 
#status ⇒ String
The status of the image.
Corresponds to the JSON property status
| 424 425 426 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 424 def status @status end | 
#type ⇒ String
The type of the image, i.e., crawled or uploaded.
Corresponds to the JSON property type
| 430 431 432 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 430 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 437 438 439 440 441 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 437 def update!(**args) @image_url = args[:image_url] if args.key?(:image_url) @status = args[:status] if args.key?(:status) @type = args[:type] if args.key?(:type) end |