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



311
312
313
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 311

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



288
289
290
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 288

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



293
294
295
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 293

def best_practices
  @best_practices
end

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

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

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