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
305 306 307 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 305 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
282 283 284 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 282 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
287 288 289 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 287 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
292 293 294 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 292 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
297 298 299 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 297 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
303 304 305 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 303 def seo @seo end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
310 311 312 313 314 315 316 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 310 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 |