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.



135
136
137
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 135

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

#agentic_browsingGoogle::Apis::PagespeedonlineV5::LighthouseCategoryV5

A Lighthouse category. Corresponds to the JSON property agentic-browsing



113
114
115
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 113

def agentic_browsing
  @agentic_browsing
end

#best_practicesGoogle::Apis::PagespeedonlineV5::LighthouseCategoryV5

A Lighthouse category. Corresponds to the JSON property best-practices



118
119
120
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 118

def best_practices
  @best_practices
end

#performanceGoogle::Apis::PagespeedonlineV5::LighthouseCategoryV5

A Lighthouse category. Corresponds to the JSON property performance



123
124
125
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 123

def performance
  @performance
end

#pwaGoogle::Apis::PagespeedonlineV5::LighthouseCategoryV5

A Lighthouse category. Corresponds to the JSON property pwa



128
129
130
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 128

def pwa
  @pwa
end

#seoGoogle::Apis::PagespeedonlineV5::LighthouseCategoryV5

A Lighthouse category. Corresponds to the JSON property seo



133
134
135
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 133

def seo
  @seo
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



140
141
142
143
144
145
146
147
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 140

def update!(**args)
  @accessibility = args[:accessibility] if args.key?(:accessibility)
  @agentic_browsing = args[:agentic_browsing] if args.key?(:agentic_browsing)
  @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