Class: Google::Apis::ManufacturersV1::Attributes
- Inherits:
-
Object
- Object
- Google::Apis::ManufacturersV1::Attributes
- 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
Attributes of the product. For more information, see https://support.google.com/manufacturers/answer/6124116.
Instance Attribute Summary collapse
-
#brand ⇒ String
The brand name of the product.
-
#gtin ⇒ Array<String>
The Global Trade Item Number (GTIN) of the product.
-
#mpn ⇒ String
The Manufacturer Part Number (MPN) of the product.
-
#product_line ⇒ String
The name of the group of products related to the product.
-
#product_name ⇒ String
The canonical name of the product.
-
#product_page_url ⇒ String
The URL of the manufacturer's detail page of the product.
-
#product_type ⇒ Array<String>
The manufacturer's category of the product.
-
#title ⇒ String
The title of the product.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Attributes
constructor
A new instance of Attributes.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Attributes
Returns a new instance of Attributes
145 146 147 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 145 def initialize(**args) update!(**args) end |
Instance Attribute Details
#brand ⇒ String
The brand name of the product. For more information, see
https://support.google.com/manufacturers/answer/6124116#brand.
Corresponds to the JSON property brand
131 132 133 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 131 def brand @brand end |
#gtin ⇒ Array<String>
The Global Trade Item Number (GTIN) of the product. For more information,
see https://support.google.com/manufacturers/answer/6124116#gtin.
Corresponds to the JSON property gtin
143 144 145 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 143 def gtin @gtin end |
#mpn ⇒ String
The Manufacturer Part Number (MPN) of the product. For more information,
see https://support.google.com/manufacturers/answer/6124116#mpn.
Corresponds to the JSON property mpn
106 107 108 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 106 def mpn @mpn end |
#product_line ⇒ String
The name of the group of products related to the product. For more
information, see
https://support.google.com/manufacturers/answer/6124116#productline.
Corresponds to the JSON property productLine
119 120 121 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 119 def product_line @product_line end |
#product_name ⇒ String
The canonical name of the product. For more information, see
https://support.google.com/manufacturers/answer/6124116#productname.
Corresponds to the JSON property productName
125 126 127 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 125 def product_name @product_name end |
#product_page_url ⇒ String
The URL of the manufacturer's detail page of the product. For more
information, see
https://support.google.com/manufacturers/answer/6124116#productpage.
Corresponds to the JSON property productPageUrl
100 101 102 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 100 def product_page_url @product_page_url end |
#product_type ⇒ Array<String>
The manufacturer's category of the product. For more information, see
https://support.google.com/manufacturers/answer/6124116#producttype.
Corresponds to the JSON property productType
137 138 139 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 137 def product_type @product_type end |
#title ⇒ String
The title of the product. For more information, see
https://support.google.com/manufacturers/answer/6124116#title.
Corresponds to the JSON property title
112 113 114 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 112 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
150 151 152 153 154 155 156 157 158 159 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 150 def update!(**args) @product_page_url = args[:product_page_url] if args.key?(:product_page_url) @mpn = args[:mpn] if args.key?(:mpn) @title = args[:title] if args.key?(:title) @product_line = args[:product_line] if args.key?(:product_line) @product_name = args[:product_name] if args.key?(:product_name) @brand = args[:brand] if args.key?(:brand) @product_type = args[:product_type] if args.key?(:product_type) @gtin = args[:gtin] if args.key?(:gtin) end |