Class: Google::Apis::PagespeedonlineV5::LighthouseResultV5::Categories

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

Map of categories in the 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) ⇒ 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

#accessibilityGoogle::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_practicesGoogle::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

#performanceGoogle::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

#pwaGoogle::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

#seoGoogle::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