Class: Google::Apis::PagespeedonlineV5::Categories
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::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
The categories in a Lighthouse run.
Instance Attribute Summary collapse
-
#accessibility ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
A Lighthouse category.
-
#best_practices ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
A Lighthouse category.
-
#performance ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
A Lighthouse category.
-
#pwa ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
A Lighthouse category.
-
#seo ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
A Lighthouse category.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Categories
constructor
A new instance of Categories.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Categories
Returns a new instance of Categories.
118 119 120 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 118 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accessibility ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
A Lighthouse category.
Corresponds to the JSON property accessibility
96 97 98 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 96 def accessibility @accessibility end |
#best_practices ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
A Lighthouse category.
Corresponds to the JSON property best-practices
101 102 103 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 101 def best_practices @best_practices end |
#performance ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
A Lighthouse category.
Corresponds to the JSON property performance
106 107 108 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 106 def performance @performance end |
#pwa ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
A Lighthouse category.
Corresponds to the JSON property pwa
111 112 113 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 111 def pwa @pwa end |
#seo ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
A Lighthouse category.
Corresponds to the JSON property seo
116 117 118 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 116 def seo @seo end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
123 124 125 126 127 128 129 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 123 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 |