Class: Google::Apis::CssV1::Certification
- Inherits:
-
Object
- Object
- Google::Apis::CssV1::Certification
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/css_v1/classes.rb,
lib/google/apis/css_v1/representations.rb,
lib/google/apis/css_v1/representations.rb
Overview
The certification for the product. Use the this attribute to describe certifications, such as energy efficiency ratings, associated with a product.
Instance Attribute Summary collapse
-
#authority ⇒ String
The authority or certification body responsible for issuing the certification.
-
#code ⇒ String
The code of the certification.
-
#name ⇒ String
The name of the certification.
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.
498 499 500 |
# File 'lib/google/apis/css_v1/classes.rb', line 498 def initialize(**args) update!(**args) end |
Instance Attribute Details
#authority ⇒ String
The authority or certification body responsible for issuing the certification.
At this time, the most common value is "EC" or “European_Commission” for
energy labels in the EU.
Corresponds to the JSON property authority
482 483 484 |
# File 'lib/google/apis/css_v1/classes.rb', line 482 def @authority end |
#code ⇒ String
The code of the certification. For example, for the EPREL certificate with the
link https://eprel.ec.europa.eu/screen/product/dishwashers2019/123456 the code
is 123456. The code is required for European Energy Labels.
Corresponds to the JSON property code
489 490 491 |
# File 'lib/google/apis/css_v1/classes.rb', line 489 def code @code end |
#name ⇒ String
The name of the certification. At this time, the most common value is "EPREL",
which represents energy efficiency certifications in the EU European Registry
for Energy Labeling (EPREL) database.
Corresponds to the JSON property name
496 497 498 |
# File 'lib/google/apis/css_v1/classes.rb', line 496 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
503 504 505 506 507 |
# File 'lib/google/apis/css_v1/classes.rb', line 503 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 |