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

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

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

Constructor Details

#initialize(**args) ⇒ FeatureDescription

Returns a new instance of FeatureDescription.



493
494
495
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 493

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

Instance Attribute Details

#headlineString

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

Returns:

  • (String)


481
482
483
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 481

def headline
  @headline
end

#imageGoogle::Apis::ManufacturersV1::Image

An image. Corresponds to the JSON property image



486
487
488
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 486

def image
  @image
end

#textString

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

Returns:

  • (String)


491
492
493
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 491

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



498
499
500
501
502
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 498

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