Class: Google::Apis::PagespeedonlineV5::LighthouseAuditResultV5
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::LighthouseAuditResultV5
- 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
An audit's result object in a Lighthouse result.
Instance Attribute Summary collapse
-
#description ⇒ String
The description of the audit.
-
#details ⇒ Hash<String,Object>
Freeform details section of the audit.
-
#display_value ⇒ String
The value that should be displayed on the UI for this audit.
-
#error_message ⇒ String
An error message from a thrown error inside the audit.
-
#explanation ⇒ String
An explanation of the errors in the audit.
-
#id ⇒ String
The audit's id.
-
#metric_savings ⇒ Google::Apis::PagespeedonlineV5::MetricSavings
The metric savings of the audit.
-
#numeric_unit ⇒ String
The unit of the numeric_value field.
-
#numeric_value ⇒ Float
A numeric value that has a meaning specific to the audit, e.g.
-
#score ⇒ Object
The score of the audit, can be null.
-
#score_display_mode ⇒ String
The enumerated score display mode.
-
#title ⇒ String
The human readable title.
-
#warnings ⇒ Object
Possible warnings that occurred in the audit, can be null.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LighthouseAuditResultV5
constructor
A new instance of LighthouseAuditResultV5.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LighthouseAuditResultV5
Returns a new instance of LighthouseAuditResultV5.
393 394 395 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 393 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of the audit.
Corresponds to the JSON property description
328 329 330 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 328 def description @description end |
#details ⇒ Hash<String,Object>
Freeform details section of the audit.
Corresponds to the JSON property details
333 334 335 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 333 def details @details end |
#display_value ⇒ String
The value that should be displayed on the UI for this audit.
Corresponds to the JSON property displayValue
338 339 340 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 338 def display_value @display_value end |
#error_message ⇒ String
An error message from a thrown error inside the audit.
Corresponds to the JSON property errorMessage
343 344 345 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 343 def @error_message end |
#explanation ⇒ String
An explanation of the errors in the audit.
Corresponds to the JSON property explanation
348 349 350 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 348 def explanation @explanation end |
#id ⇒ String
The audit's id.
Corresponds to the JSON property id
353 354 355 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 353 def id @id end |
#metric_savings ⇒ Google::Apis::PagespeedonlineV5::MetricSavings
The metric savings of the audit.
Corresponds to the JSON property metricSavings
358 359 360 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 358 def metric_savings @metric_savings end |
#numeric_unit ⇒ String
The unit of the numeric_value field. Used to format the numeric value for
display.
Corresponds to the JSON property numericUnit
364 365 366 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 364 def numeric_unit @numeric_unit end |
#numeric_value ⇒ Float
A numeric value that has a meaning specific to the audit, e.g. the number of
nodes in the DOM or the timestamp of a specific load event. More information
can be found in the audit details, if present.
Corresponds to the JSON property numericValue
371 372 373 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 371 def numeric_value @numeric_value end |
#score ⇒ Object
The score of the audit, can be null.
Corresponds to the JSON property score
376 377 378 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 376 def score @score end |
#score_display_mode ⇒ String
The enumerated score display mode.
Corresponds to the JSON property scoreDisplayMode
381 382 383 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 381 def score_display_mode @score_display_mode end |
#title ⇒ String
The human readable title.
Corresponds to the JSON property title
386 387 388 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 386 def title @title end |
#warnings ⇒ Object
Possible warnings that occurred in the audit, can be null.
Corresponds to the JSON property warnings
391 392 393 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 391 def warnings @warnings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 398 def update!(**args) @description = args[:description] if args.key?(:description) @details = args[:details] if args.key?(:details) @display_value = args[:display_value] if args.key?(:display_value) @error_message = args[:error_message] if args.key?(:error_message) @explanation = args[:explanation] if args.key?(:explanation) @id = args[:id] if args.key?(:id) @metric_savings = args[:metric_savings] if args.key?(:metric_savings) @numeric_unit = args[:numeric_unit] if args.key?(:numeric_unit) @numeric_value = args[:numeric_value] if args.key?(:numeric_value) @score = args[:score] if args.key?(:score) @score_display_mode = args[:score_display_mode] if args.key?(:score_display_mode) @title = args[:title] if args.key?(:title) @warnings = args[:warnings] if args.key?(:warnings) end |