Class: Google::Apis::ManufacturersV1::FeatureDescription
- Inherits:
-
Object
- Object
- Google::Apis::ManufacturersV1::FeatureDescription
- 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
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FeatureDescription
Returns a new instance of FeatureDescription
249 250 251 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 249 def initialize(**args) update!(**args) end |
Instance Attribute Details
#headline ⇒ String
A short description of the feature.
Corresponds to the JSON property headline
247 248 249 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 247 def headline @headline end |
#image ⇒ Google::Apis::ManufacturersV1::Image
An image.
Corresponds to the JSON property image
242 243 244 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 242 def image @image end |
#text ⇒ String
A detailed description of the feature.
Corresponds to the JSON property text
237 238 239 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 237 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
254 255 256 257 258 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 254 def update!(**args) @text = args[:text] if args.key?(:text) @image = args[:image] if args.key?(:image) @headline = args[:headline] if args.key?(:headline) end |