Class: Google::Apis::PagespeedonlineV5::LighthouseResultV5::Categories
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::LighthouseResultV5::Categories
- 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
Map of categories in the LHR.
Instance Attribute Summary collapse
-
#accessibility ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
The accessibility category, containing all accessibility related audits.
-
#best_practices ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
The best practices category, containing all web best practice related audits.
-
#performance ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
The performance category, containing all performance related audits.
-
#pwa ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
The Progressive-Web-App (PWA) category, containing all pwa related audits.
-
#seo ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
The Search-Engine-Optimization (SEO) category, containing all seo related audits.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Categories
constructor
A new instance of Categories.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Categories
Returns a new instance of Categories
311 312 313 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 311 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accessibility ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
The accessibility category, containing all accessibility related audits.
Corresponds to the JSON property accessibility
288 289 290 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 288 def accessibility @accessibility end |
#best_practices ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
The best practices category, containing all web best practice related audits.
Corresponds to the JSON property best-practices
293 294 295 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 293 def best_practices @best_practices end |
#performance ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
The performance category, containing all performance related audits.
Corresponds to the JSON property performance
298 299 300 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 298 def performance @performance end |
#pwa ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
The Progressive-Web-App (PWA) category, containing all pwa related audits.
Corresponds to the JSON property pwa
303 304 305 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 303 def pwa @pwa end |
#seo ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
The Search-Engine-Optimization (SEO) category, containing all seo related
audits.
Corresponds to the JSON property seo
309 310 311 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 309 def seo @seo end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
316 317 318 319 320 321 322 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 316 def update!(**args) @accessibility = args[:accessibility] if args.key?(:accessibility) @best_practices = args[:best_practices] if args.key?(:best_practices) @performance = args[:performance] if args.key?(:performance) @pwa = args[:pwa] if args.key?(:pwa) @seo = args[:seo] if args.key?(:seo) end |