class Google::Apis::PagespeedonlineV2::Result

Attributes

formatted_results[RW]

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]

id[RW]

Canonicalized and final URL for the document, after following page redirects ( if any). Corresponds to the JSON property `id` @return [String]

invalid_rules[RW]

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[RW]

Kind of result. Corresponds to the JSON property `kind` @return [String]

page_stats[RW]

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[RW]

Response code for the document. 200 indicates a normal page load. 4xx/5xx indicates an error. Corresponds to the JSON property `responseCode` @return [Fixnum]

rule_groups[RW]

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>]

screenshot[RW]

Base64-encoded screenshot of the page that was analyzed. Corresponds to the JSON property `screenshot` @return [Google::Apis::PagespeedonlineV2::Image]

title[RW]

Title of the page, as displayed in the browser's title bar. Corresponds to the JSON property `title` @return [String]

version[RW]

The version of PageSpeed used to generate these results. Corresponds to the JSON property `version` @return [Google::Apis::PagespeedonlineV2::Result::Version]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/pagespeedonline_v2/classes.rb, line 322
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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