Class: Google::Apis::ManufacturersV1::Certification

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) ⇒ Certification

Returns a new instance of Certification.



390
391
392
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 390

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

Instance Attribute Details

#authorityString

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

Returns:

  • (String)


358
359
360
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 358

def authority
  @authority
end

#codeString

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

Returns:

  • (String)


363
364
365
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 363

def code
  @code
end

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

Returns:

  • (String)


368
369
370
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 368

def link
  @link
end

#logoString

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

Returns:

  • (String)


373
374
375
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 373

def 
  @logo
end

#nameString

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

Returns:

  • (String)


378
379
380
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 378

def name
  @name
end

#valid_untilString

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

Returns:

  • (String)


383
384
385
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 383

def valid_until
  @valid_until
end

#valueString

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

Returns:

  • (String)


388
389
390
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 388

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



395
396
397
398
399
400
401
402
403
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 395

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