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.



600
601
602
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 600

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

Instance Attribute Details

#authorityString

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

Returns:

  • (String)


568
569
570
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 568

def authority
  @authority
end

#codeString

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

Returns:

  • (String)


573
574
575
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 573

def code
  @code
end

Optional. A URL link to the certification. Corresponds to the JSON property link

Returns:

  • (String)


578
579
580
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 578

def link
  @link
end

#logoString

Optional. A URL link to the certification logo. Corresponds to the JSON property logo

Returns:

  • (String)


583
584
585
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 583

def 
  @logo
end

#nameString

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

Returns:

  • (String)


588
589
590
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 588

def name
  @name
end

#valid_untilString

Optional. The expiration date (UTC). Corresponds to the JSON property validUntil

Returns:

  • (String)


593
594
595
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 593

def valid_until
  @valid_until
end

#valueString

Optional. A custom value of the certification. Corresponds to the JSON property value

Returns:

  • (String)


598
599
600
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 598

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



605
606
607
608
609
610
611
612
613
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 605

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