Class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pagespeedonline_v4/classes.rb,
generated/google/apis/pagespeedonline_v4/representations.rb,
generated/google/apis/pagespeedonline_v4/representations.rb
Defined Under Namespace
Classes: FormattedResults, LoadingExperience, PageStats, RuleGroup, Version
Instance Attribute Summary collapse
-
#captcha_result ⇒ String
The captcha verify result Corresponds to the JSON property
captchaResult
. -
#formatted_results ⇒ Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults
Localized PageSpeed results.
-
#id ⇒ String
Canonicalized and final URL for the document, after following page redirects ( if any).
-
#invalid_rules ⇒ Array<String>
List of rules that were specified in the request, but which the server did not know how to instantiate.
-
#kind ⇒ String
Kind of result.
-
#loading_experience ⇒ Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience
Metrics of end users' page loading experience.
-
#page_stats ⇒ Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::PageStats
Summary statistics for the page, such as number of JavaScript bytes, number of HTML bytes, etc.
-
#response_code ⇒ Fixnum
Response code for the document.
-
#rule_groups ⇒ Hash<String,Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::RuleGroup>
A map with one entry for each rule group in these results.
-
#screenshot ⇒ Google::Apis::PagespeedonlineV4::PagespeedApiImageV4
Base64-encoded screenshot of the page that was analyzed.
-
#snapshots ⇒ Array<Google::Apis::PagespeedonlineV4::PagespeedApiImageV4>
Additional base64-encoded screenshots of the page, in various partial render states.
-
#title ⇒ String
Title of the page, as displayed in the browser's title bar.
-
#version ⇒ Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::Version
The version of PageSpeed used to generate these results.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PagespeedApiPagespeedResponseV4
constructor
A new instance of PagespeedApiPagespeedResponseV4.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PagespeedApiPagespeedResponseV4
Returns a new instance of PagespeedApiPagespeedResponseV4
337 338 339 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 337 def initialize(**args) update!(**args) end |
Instance Attribute Details
#captcha_result ⇒ String
The captcha verify result
Corresponds to the JSON property captchaResult
269 270 271 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 269 def captcha_result @captcha_result end |
#formatted_results ⇒ Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults
Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed
rule instantiated and run by the server.
Corresponds to the JSON property formattedResults
275 276 277 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 275 def formatted_results @formatted_results end |
#id ⇒ String
Canonicalized and final URL for the document, after following page redirects (
if any).
Corresponds to the JSON property id
281 282 283 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 281 def id @id end |
#invalid_rules ⇒ Array<String>
List of rules that were specified in the request, but which the server did not
know how to instantiate.
Corresponds to the JSON property invalidRules
287 288 289 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 287 def invalid_rules @invalid_rules end |
#kind ⇒ String
Kind of result.
Corresponds to the JSON property kind
292 293 294 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 292 def kind @kind end |
#loading_experience ⇒ Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience
Metrics of end users' page loading experience.
Corresponds to the JSON property loadingExperience
297 298 299 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 297 def loading_experience @loading_experience end |
#page_stats ⇒ Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::PageStats
Summary statistics for the page, such as number of JavaScript bytes, number of
HTML bytes, etc.
Corresponds to the JSON property pageStats
303 304 305 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 303 def page_stats @page_stats end |
#response_code ⇒ Fixnum
Response code for the document. 200 indicates a normal page load. 4xx/5xx
indicates an error.
Corresponds to the JSON property responseCode
309 310 311 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 309 def response_code @response_code end |
#rule_groups ⇒ Hash<String,Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::RuleGroup>
A map with one entry for each rule group in these results.
Corresponds to the JSON property ruleGroups
314 315 316 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 314 def rule_groups @rule_groups end |
#screenshot ⇒ Google::Apis::PagespeedonlineV4::PagespeedApiImageV4
Base64-encoded screenshot of the page that was analyzed.
Corresponds to the JSON property screenshot
319 320 321 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 319 def screenshot @screenshot end |
#snapshots ⇒ Array<Google::Apis::PagespeedonlineV4::PagespeedApiImageV4>
Additional base64-encoded screenshots of the page, in various partial render
states.
Corresponds to the JSON property snapshots
325 326 327 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 325 def snapshots @snapshots end |
#title ⇒ String
Title of the page, as displayed in the browser's title bar.
Corresponds to the JSON property title
330 331 332 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 330 def title @title end |
#version ⇒ Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::Version
The version of PageSpeed used to generate these results.
Corresponds to the JSON property version
335 336 337 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 335 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 342 def update!(**args) @captcha_result = args[:captcha_result] if args.key?(:captcha_result) @formatted_results = args[:formatted_results] if args.key?(:formatted_results) @id = args[:id] if args.key?(:id) @invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules) @kind = args[:kind] if args.key?(:kind) @loading_experience = args[:loading_experience] if args.key?(:loading_experience) @page_stats = args[:page_stats] if args.key?(:page_stats) @response_code = args[:response_code] if args.key?(:response_code) @rule_groups = args[:rule_groups] if args.key?(:rule_groups) @screenshot = args[:screenshot] if args.key?(:screenshot) @snapshots = args[:snapshots] if args.key?(:snapshots) @title = args[:title] if args.key?(:title) @version = args[:version] if args.key?(:version) end |