Class: Google::Apis::PagespeedonlineV5::LighthouseResultV5::CategoryGroup

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/pagespeedonline_v5/classes.rb,
generated/google/apis/pagespeedonline_v5/representations.rb,
generated/google/apis/pagespeedonline_v5/representations.rb

Overview

A grouping contained in a category that groups similar audits together.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CategoryGroup

Returns a new instance of CategoryGroup



333
334
335
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 333

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

Instance Attribute Details

#descriptionString

An optional human readable description of the category group. Corresponds to the JSON property description

Returns:

  • (String)


326
327
328
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 326

def description
  @description
end

#titleString

The title of the category group. Corresponds to the JSON property title

Returns:

  • (String)


331
332
333
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 331

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



338
339
340
341
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 338

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @title = args[:title] if args.key?(:title)
end