Class: Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/pagespeedonline_v5/classes.rb,
lib/google/apis/pagespeedonline_v5/representations.rb,
lib/google/apis/pagespeedonline_v5/representations.rb
Overview
A Lighthouse category.
Instance Attribute Summary collapse
-
#audit_refs ⇒ Array<Google::Apis::PagespeedonlineV5::AuditRefs>
An array of references to all the audit members of this category.
-
#description ⇒ String
A more detailed description of the category and its importance.
-
#id ⇒ String
The string identifier of the category.
-
#manual_description ⇒ String
A description for the manual audits in the category.
-
#score ⇒ Object
The overall score of the category, the weighted average of all its audits.
-
#title ⇒ String
The human-friendly name of the category.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LighthouseCategoryV5
constructor
A new instance of LighthouseCategoryV5.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LighthouseCategoryV5
Returns a new instance of LighthouseCategoryV5.
444 445 446 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 444 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audit_refs ⇒ Array<Google::Apis::PagespeedonlineV5::AuditRefs>
An array of references to all the audit members of this category.
Corresponds to the JSON property auditRefs
416 417 418 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 416 def audit_refs @audit_refs end |
#description ⇒ String
A more detailed description of the category and its importance.
Corresponds to the JSON property description
421 422 423 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 421 def description @description end |
#id ⇒ String
The string identifier of the category.
Corresponds to the JSON property id
426 427 428 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 426 def id @id end |
#manual_description ⇒ String
A description for the manual audits in the category.
Corresponds to the JSON property manualDescription
431 432 433 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 431 def manual_description @manual_description end |
#score ⇒ Object
The overall score of the category, the weighted average of all its audits. (
The category's score, can be null.)
Corresponds to the JSON property score
437 438 439 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 437 def score @score end |
#title ⇒ String
The human-friendly name of the category.
Corresponds to the JSON property title
442 443 444 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 442 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
449 450 451 452 453 454 455 456 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 449 def update!(**args) @audit_refs = args[:audit_refs] if args.key?(:audit_refs) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @manual_description = args[:manual_description] if args.key?(:manual_description) @score = args[:score] if args.key?(:score) @title = args[:title] if args.key?(:title) end |