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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

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

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

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

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