Class: Google::Apis::PagespeedonlineV5::RuntimeError
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::RuntimeError
- 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
Message containing a runtime error config.
Instance Attribute Summary collapse
-
#code ⇒ String
The enumerated Lighthouse Error code.
-
#message ⇒ String
A human readable message explaining the error code.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RuntimeError
constructor
A new instance of RuntimeError.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RuntimeError
Returns a new instance of RuntimeError.
1114 1115 1116 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 1114 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
The enumerated Lighthouse Error code.
Corresponds to the JSON property code
1107 1108 1109 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 1107 def code @code end |
#message ⇒ String
A human readable message explaining the error code.
Corresponds to the JSON property message
1112 1113 1114 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 1112 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1119 1120 1121 1122 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 1119 def update!(**args) @code = args[:code] if args.key?(:code) @message = args[:message] if args.key?(:message) end |