Class: Google::Apis::ManufacturersV1::Certification
- Inherits:
-
Object
- Object
- Google::Apis::ManufacturersV1::Certification
- 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
-
#authority ⇒ String
Required.
-
#link ⇒ String
Optional.
-
#logo ⇒ String
Optional.
-
#name ⇒ String
Required.
-
#valid_until ⇒ String
Optional.
-
#value ⇒ String
Required.
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.
373 374 375 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 373 def initialize(**args) update!(**args) end |
Instance Attribute Details
#authority ⇒ String
Required. Name of the certification body.
Corresponds to the JSON property authority
346 347 348 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 346 def @authority end |
#link ⇒ String
Optional. A URL link to the certification.
Corresponds to the JSON property link
351 352 353 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 351 def link @link end |
#logo ⇒ String
Optional. A URL link to the certification logo.
Corresponds to the JSON property logo
356 357 358 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 356 def logo @logo end |
#name ⇒ String
Required. Name of the certification.
Corresponds to the JSON property name
361 362 363 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 361 def name @name end |
#valid_until ⇒ String
Optional. The expiration date (UTC).
Corresponds to the JSON property validUntil
366 367 368 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 366 def valid_until @valid_until end |
#value ⇒ String
Required. A custom value of the certification.
Corresponds to the JSON property value
371 372 373 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 371 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
378 379 380 381 382 383 384 385 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 378 def update!(**args) @authority = args[:authority] if args.key?(:authority) @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 |