Class: Google::Apis::MerchantapiProductsV1beta::Certification
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiProductsV1beta::Certification
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_products_v1beta/classes.rb,
lib/google/apis/merchantapi_products_v1beta/representations.rb,
lib/google/apis/merchantapi_products_v1beta/representations.rb
Overview
Product certification, initially 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.
-
#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) ⇒ Certification
constructor
A new instance of Certification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Certification
Returns a new instance of Certification.
668 669 670 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 668 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
649 650 651 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 649 def @certification_authority end |
#certification_code ⇒ String
The certification code. Maximum length is 2000 characters.
Corresponds to the JSON property certificationCode
654 655 656 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 654 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
660 661 662 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 660 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
666 667 668 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 666 def certification_value @certification_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
673 674 675 676 677 678 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 673 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 |