class Google::Apis::PagespeedonlineV2::Result
Attributes
Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed rule instantiated and run by the server. Corresponds to the JSON property `formattedResults` @return [Google::Apis::PagespeedonlineV2::Result::FormattedResults]
Canonicalized and final URL for the document, after following page redirects ( if any). Corresponds to the JSON property `id` @return [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` @return [Array<String>]
Kind of result. Corresponds to the JSON property `kind` @return [String]
Summary statistics for the page, such as number of JavaScript bytes, number of HTML bytes, etc. Corresponds to the JSON property `pageStats` @return [Google::Apis::PagespeedonlineV2::Result::PageStats]
Response code for the document. 200 indicates a normal page load. 4xx/5xx indicates an error. Corresponds to the JSON property `responseCode` @return [Fixnum]
A map with one entry for each rule group in these results. Corresponds to the JSON property `ruleGroups` @return [Hash<String,Google::Apis::PagespeedonlineV2::Result::RuleGroup>]
Base64-encoded screenshot of the page that was analyzed. Corresponds to the JSON property `screenshot` @return [Google::Apis::PagespeedonlineV2::Image]
Title of the page, as displayed in the browser's title bar. Corresponds to the JSON property `title` @return [String]
The version of PageSpeed used to generate these results. Corresponds to the JSON property `version` @return [Google::Apis::PagespeedonlineV2::Result::Version]
Public Class Methods
# File generated/google/apis/pagespeedonline_v2/classes.rb, line 322 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/pagespeedonline_v2/classes.rb, line 327 def update!(**args) @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) @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) @title = args[:title] if args.key?(:title) @version = args[:version] if args.key?(:version) end