Class: Google::Apis::PagespeedonlineV5::LighthouseResultV5::ConfigSettings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_factorString

The form factor the emulation should use. Corresponds to the JSON property emulatedFormFactor

Returns:

  • (String)


351
352
353
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 351

def emulated_form_factor
  @emulated_form_factor
end

#localeString

The locale setting. Corresponds to the JSON property locale

Returns:

  • (String)


356
357
358
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 356

def locale
  @locale
end

#only_categoriesObject

Corresponds to the JSON property onlyCategories

Returns:

  • (Object)


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