Class: Google::Apis::ContentV2_1::ProductCertification
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ProductCertification
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Product certification, introduced for EU energy efficiency labeling compliance using the EU EPREL database.
Instance Attribute Summary collapse
-
#certification_authority ⇒ String
The certification authority, for example "European_Commission".
-
#certification_code ⇒ String
The certification code, for eaxample "123456".
-
#certification_name ⇒ String
The name of the certification, for example "EPREL".
-
#certification_value ⇒ String
The certification value (also known as class, level or grade), for example "A+" , "C", "gold".
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductCertification
constructor
A new instance of ProductCertification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductCertification
Returns a new instance of ProductCertification.
9357 9358 9359 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9357 def initialize(**args) update!(**args) end |
Instance Attribute Details
#certification_authority ⇒ String
The certification authority, for example "European_Commission". Maximum length
is 2000 characters.
Corresponds to the JSON property certificationAuthority
9337 9338 9339 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9337 def @certification_authority end |
#certification_code ⇒ String
The certification code, for eaxample "123456". Maximum length is 2000
characters.
Corresponds to the JSON property certificationCode
9343 9344 9345 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9343 def certification_code @certification_code end |
#certification_name ⇒ String
The name of the certification, for example "EPREL". Maximum length is 2000
characters.
Corresponds to the JSON property certificationName
9349 9350 9351 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9349 def certification_name @certification_name end |
#certification_value ⇒ String
The certification value (also known as class, level or grade), for example "A+"
, "C", "gold". Maximum length is 2000 characters.
Corresponds to the JSON property certificationValue
9355 9356 9357 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9355 def certification_value @certification_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9362 9363 9364 9365 9366 9367 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 9362 def update!(**args) @certification_authority = args[:certification_authority] if args.key?(:certification_authority) @certification_code = args[:certification_code] if args.key?(:certification_code) @certification_name = args[:certification_name] if args.key?(:certification_name) @certification_value = args[:certification_value] if args.key?(:certification_value) end |