Class: Google::Apis::ManufacturersV1::GoogleShoppingManufacturersV1ProductCertification

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

Description of a certification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleShoppingManufacturersV1ProductCertification

Returns a new instance of GoogleShoppingManufacturersV1ProductCertification.



549
550
551
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 549

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

Instance Attribute Details

#authorityString

Required. Name of the certification body. Corresponds to the JSON property authority

Returns:

  • (String)


537
538
539
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 537

def authority
  @authority
end

#codeString

Required. A unique code to identify the certification. Corresponds to the JSON property code

Returns:

  • (String)


542
543
544
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 542

def code
  @code
end

#nameString

Required. Name of the certification. Corresponds to the JSON property name

Returns:

  • (String)


547
548
549
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 547

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



554
555
556
557
558
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 554

def update!(**args)
  @authority = args[:authority] if args.key?(:authority)
  @code = args[:code] if args.key?(:code)
  @name = args[:name] if args.key?(:name)
end