Class: Google::Apis::ManufacturersV1::Image

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image



355
356
357
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 355

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#image_urlString

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

Returns:

  • (String)


353
354
355
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 353

def image_url
  @image_url
end

#statusString

The status of the image. Corresponds to the JSON property status

Returns:

  • (String)


340
341
342
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 340

def status
  @status
end

#typeString

The type of the image, i.e., crawled or uploaded. Corresponds to the JSON property type

Returns:

  • (String)


346
347
348
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 346

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



360
361
362
363
364
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 360

def update!(**args)
  @status = args[:status] if args.key?(:status)
  @type = args[:type] if args.key?(:type)
  @image_url = args[:image_url] if args.key?(:image_url)
end