Class: Google::Apis::PagespeedonlineV5::LighthouseResultV5::ConfigSettings
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::LighthouseResultV5::ConfigSettings
- 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
The configuration settings for this LHR.
Instance Attribute Summary collapse
-
#emulated_form_factor ⇒ String
The form factor the emulation should use.
-
#locale ⇒ String
The locale setting.
-
#only_categories ⇒ Object
Corresponds to the JSON property
onlyCategories
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConfigSettings
constructor
A new instance of ConfigSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ConfigSettings
Returns a new instance of ConfigSettings
363 364 365 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 363 def initialize(**args) update!(**args) end |
Instance Attribute Details
#emulated_form_factor ⇒ String
The form factor the emulation should use.
Corresponds to the JSON property emulatedFormFactor
351 352 353 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 351 def emulated_form_factor @emulated_form_factor end |
#locale ⇒ String
The locale setting.
Corresponds to the JSON property locale
356 357 358 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 356 def locale @locale end |
#only_categories ⇒ Object
Corresponds to the JSON property onlyCategories
361 362 363 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 361 def only_categories @only_categories end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
368 369 370 371 372 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 368 def update!(**args) @emulated_form_factor = args[:emulated_form_factor] if args.key?(:emulated_form_factor) @locale = args[:locale] if args.key?(:locale) @only_categories = args[:only_categories] if args.key?(:only_categories) end |