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
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.
-
#score ⇒ Object
Corresponds to the JSON property
score
. -
#score_display_mode ⇒ String
The enumerated score display mode.
-
#title ⇒ String
The human readable title.
-
#warnings ⇒ Object
Corresponds to the JSON property
warnings
.
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
79 80 81 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 79 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of the audit.
Corresponds to the JSON property description
32 33 34 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 32 def description @description end |
#details ⇒ Hash<String,Object>
Freeform details section of the audit.
Corresponds to the JSON property details
37 38 39 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 37 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
42 43 44 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 42 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
47 48 49 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 47 def @error_message end |
#explanation ⇒ String
An explanation of the errors in the audit.
Corresponds to the JSON property explanation
52 53 54 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 52 def explanation @explanation end |
#id ⇒ String
The audit's id.
Corresponds to the JSON property id
57 58 59 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 57 def id @id end |
#score ⇒ Object
Corresponds to the JSON property score
62 63 64 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 62 def score @score end |
#score_display_mode ⇒ String
The enumerated score display mode.
Corresponds to the JSON property scoreDisplayMode
67 68 69 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 67 def score_display_mode @score_display_mode end |
#title ⇒ String
The human readable title.
Corresponds to the JSON property title
72 73 74 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 72 def title @title end |
#warnings ⇒ Object
Corresponds to the JSON property warnings
77 78 79 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 77 def warnings @warnings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 84 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) @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 |