Class: Google::Apis::ManufacturersV1::Attributes

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

Attributes of the product. For more information, see https://support.google.com/manufacturers/answer/6124116.

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

#brandString

The brand name of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#brand. Corresponds to the JSON property brand

Returns:

  • (String)


131
132
133
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 131

def brand
  @brand
end

#gtinArray<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

Returns:

  • (Array<String>)


143
144
145
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 143

def gtin
  @gtin
end

#mpnString

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

Returns:

  • (String)


106
107
108
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 106

def mpn
  @mpn
end

#product_lineString

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

Returns:

  • (String)


119
120
121
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 119

def product_line
  @product_line
end

#product_nameString

The canonical name of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#productname. Corresponds to the JSON property productName

Returns:

  • (String)


125
126
127
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 125

def product_name
  @product_name
end

#product_page_urlString

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

Returns:

  • (String)


100
101
102
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 100

def product_page_url
  @product_page_url
end

#product_typeArray<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

Returns:

  • (Array<String>)


137
138
139
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 137

def product_type
  @product_type
end

#titleString

The title of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#title. Corresponds to the JSON property title

Returns:

  • (String)


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