Class: Google::Apis::ManufacturersV1::FeatureDescription
- Inherits:
-
Object
- Object
- Google::Apis::ManufacturersV1::FeatureDescription
- 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
-
#headline ⇒ String
A short description of the feature.
-
#image ⇒ Google::Apis::ManufacturersV1::Image
An image.
-
#text ⇒ String
A detailed description of the feature.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FeatureDescription
constructor
A new instance of FeatureDescription.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FeatureDescription
Returns a new instance of FeatureDescription.
524 525 526 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 524 def initialize(**args) update!(**args) end |
Instance Attribute Details
#headline ⇒ String
A short description of the feature.
Corresponds to the JSON property headline
512 513 514 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 512 def headline @headline end |
#image ⇒ Google::Apis::ManufacturersV1::Image
An image.
Corresponds to the JSON property image
517 518 519 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 517 def image @image end |
#text ⇒ String
A detailed description of the feature.
Corresponds to the JSON property text
522 523 524 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 522 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
529 530 531 532 533 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 529 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 |