Class: Google::Apis::ManufacturersV1::FeatureDescription

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

A feature description of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#featuredesc.

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) ⇒ FeatureDescription

Returns a new instance of FeatureDescription



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

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

Instance Attribute Details

#headlineString

A short description of the feature. Corresponds to the JSON property headline

Returns:

  • (String)


348
349
350
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 348

def headline
  @headline
end

#imageGoogle::Apis::ManufacturersV1::Image

An image. Corresponds to the JSON property image



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

def image
  @image
end

#textString

A detailed description of the feature. Corresponds to the JSON property text

Returns:

  • (String)


358
359
360
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 358

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



365
366
367
368
369
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 365

def update!(**args)
  @headline = args[:headline] if args.key?(:headline)
  @image = args[:image] if args.key?(:image)
  @text = args[:text] if args.key?(:text)
end