Class: Google::Apis::PagespeedonlineV5::ConfigSettings
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::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
Message containing the configuration settings for the Lighthouse run.
Instance Attribute Summary collapse
-
#channel ⇒ String
How Lighthouse was run, e.g.
-
#emulated_form_factor ⇒ String
The form factor the emulation should use.
-
#locale ⇒ String
The locale setting.
-
#only_categories ⇒ Object
List of categories of audits the run should conduct.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConfigSettings
constructor
A new instance of ConfigSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConfigSettings
Returns a new instance of ConfigSettings.
181 182 183 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 181 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channel ⇒ String
How Lighthouse was run, e.g. from the Chrome extension or from the npm module.
Corresponds to the JSON property channel
164 165 166 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 164 def channel @channel end |
#emulated_form_factor ⇒ String
The form factor the emulation should use.
Corresponds to the JSON property emulatedFormFactor
169 170 171 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 169 def emulated_form_factor @emulated_form_factor end |
#locale ⇒ String
The locale setting.
Corresponds to the JSON property locale
174 175 176 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 174 def locale @locale end |
#only_categories ⇒ Object
List of categories of audits the run should conduct.
Corresponds to the JSON property onlyCategories
179 180 181 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 179 def only_categories @only_categories end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
186 187 188 189 190 191 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 186 def update!(**args) @channel = args[:channel] if args.key?(:channel) @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 |