Class: Google::Apis::PagespeedonlineV5::LighthouseAuditResultV5
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::LighthouseAuditResultV5
- 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
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.
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LighthouseAuditResultV5
Returns a new instance of LighthouseAuditResultV5.
307 308 309 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 307 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of the audit.
Corresponds to the JSON property description
253 254 255 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 253 def description @description end |
#details ⇒ Hash<String,Object>
Freeform details section of the audit.
Corresponds to the JSON property details
258 259 260 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 258 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
263 264 265 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 263 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
268 269 270 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 268 def @error_message end |
#explanation ⇒ String
An explanation of the errors in the audit.
Corresponds to the JSON property explanation
273 274 275 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 273 def explanation @explanation end |
#id ⇒ String
The audit's id.
Corresponds to the JSON property id
278 279 280 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 278 def id @id 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
285 286 287 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 285 def numeric_value @numeric_value end |
#score ⇒ Object
The score of the audit, can be null.
Corresponds to the JSON property score
290 291 292 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 290 def score @score end |
#score_display_mode ⇒ String
The enumerated score display mode.
Corresponds to the JSON property scoreDisplayMode
295 296 297 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 295 def score_display_mode @score_display_mode end |
#title ⇒ String
The human readable title.
Corresponds to the JSON property title
300 301 302 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 300 def title @title end |
#warnings ⇒ Object
Possible warnings that occurred in the audit, can be null.
Corresponds to the JSON property warnings
305 306 307 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 305 def warnings @warnings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
312 313 314 315 316 317 318 319 320 321 322 323 324 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 312 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) @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 |