Class: Google::Apis::PagespeedonlineV5::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

The categories in a Lighthouse run.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

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

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

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