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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/manufacturers_v1/classes.rb,
lib/google/apis/manufacturers_v1/representations.rb,
lib/google/apis/manufacturers_v1/representations.rb

Overview

An image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Image

Returns a new instance of Image.



551
552
553
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 551

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)


539
540
541
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 539

def image_url
  @image_url
end

#statusString

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

Returns:

  • (String)


544
545
546
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 544

def status
  @status
end

#typeString

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

Returns:

  • (String)


549
550
551
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 549

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



556
557
558
559
560
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 556

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