Class: Google::Apis::PagespeedonlineV2::Result
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV2::Result
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pagespeedonline_v2/classes.rb,
generated/google/apis/pagespeedonline_v2/representations.rb,
generated/google/apis/pagespeedonline_v2/representations.rb
Defined Under Namespace
Classes: FormattedResults, PageStats, RuleGroup, Version
Instance Attribute Summary collapse
-
#formatted_results ⇒ Google::Apis::PagespeedonlineV2::Result::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.
-
#page_stats ⇒ Google::Apis::PagespeedonlineV2::Result::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::PagespeedonlineV2::Result::RuleGroup>
A map with one entry for each rule group in these results.
-
#screenshot ⇒ Google::Apis::PagespeedonlineV2::Image
Base64-encoded screenshot of the page that was analyzed.
-
#title ⇒ String
Title of the page, as displayed in the browser's title bar.
-
#version ⇒ Google::Apis::PagespeedonlineV2::Result::Version
The version of PageSpeed used to generate these results.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Result
constructor
A new instance of Result.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Result
Returns a new instance of Result.
322 323 324 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 322 def initialize(**args) update!(**args) end |
Instance Attribute Details
#formatted_results ⇒ Google::Apis::PagespeedonlineV2::Result::FormattedResults
Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed
rule instantiated and run by the server.
Corresponds to the JSON property formattedResults
271 272 273 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 271 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
277 278 279 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 277 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
283 284 285 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 283 def invalid_rules @invalid_rules end |
#kind ⇒ String
Kind of result.
Corresponds to the JSON property kind
288 289 290 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 288 def kind @kind end |
#page_stats ⇒ Google::Apis::PagespeedonlineV2::Result::PageStats
Summary statistics for the page, such as number of JavaScript bytes, number of
HTML bytes, etc.
Corresponds to the JSON property pageStats
294 295 296 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 294 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
300 301 302 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 300 def response_code @response_code end |
#rule_groups ⇒ Hash<String,Google::Apis::PagespeedonlineV2::Result::RuleGroup>
A map with one entry for each rule group in these results.
Corresponds to the JSON property ruleGroups
305 306 307 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 305 def rule_groups @rule_groups end |
#screenshot ⇒ Google::Apis::PagespeedonlineV2::Image
Base64-encoded screenshot of the page that was analyzed.
Corresponds to the JSON property screenshot
310 311 312 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 310 def screenshot @screenshot end |
#title ⇒ String
Title of the page, as displayed in the browser's title bar.
Corresponds to the JSON property title
315 316 317 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 315 def title @title end |
#version ⇒ Google::Apis::PagespeedonlineV2::Result::Version
The version of PageSpeed used to generate these results.
Corresponds to the JSON property version
320 321 322 |
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 320 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
327 328 329 330 331 332 333 334 335 336 337 338 |
# 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 |