Class: Google::Apis::PagespeedonlineV5::Categories
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::Categories
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/pagespeedonline_v5/classes.rb,
lib/google/apis/pagespeedonline_v5/representations.rb,
lib/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.
130 131 132 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 130 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accessibility ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
A Lighthouse category.
Corresponds to the JSON property accessibility
108 109 110 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 108 def accessibility @accessibility end |
#best_practices ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
A Lighthouse category.
Corresponds to the JSON property best-practices
113 114 115 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 113 def best_practices @best_practices end |
#performance ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
A Lighthouse category.
Corresponds to the JSON property performance
118 119 120 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 118 def performance @performance end |
#pwa ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
A Lighthouse category.
Corresponds to the JSON property pwa
123 124 125 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 123 def pwa @pwa end |
#seo ⇒ Google::Apis::PagespeedonlineV5::LighthouseCategoryV5
A Lighthouse category.
Corresponds to the JSON property seo
128 129 130 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 128 def seo @seo end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
135 136 137 138 139 140 141 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 135 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 |