Class: Google::Apis::PagespeedonlineV1::Result
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV1::Result
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pagespeedonline_v1/classes.rb,
generated/google/apis/pagespeedonline_v1/representations.rb,
generated/google/apis/pagespeedonline_v1/representations.rb
Defined Under Namespace
Classes: FormattedResults, PageStats, Screenshot, Version
Instance Attribute Summary collapse
-
#captcha_result ⇒ String
The captcha verify result Corresponds to the JSON property
captchaResult
. -
#formatted_results ⇒ Google::Apis::PagespeedonlineV1::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::PagespeedonlineV1::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.
-
#score ⇒ Fixnum
The PageSpeed Score (0-100), which indicates how much faster a page could be.
-
#screenshot ⇒ Google::Apis::PagespeedonlineV1::Result::Screenshot
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::PagespeedonlineV1::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
91 92 93 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 91 def initialize(**args) update!(**args) end |
Instance Attribute Details
#captcha_result ⇒ String
The captcha verify result
Corresponds to the JSON property captchaResult
32 33 34 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 32 def captcha_result @captcha_result end |
#formatted_results ⇒ Google::Apis::PagespeedonlineV1::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
38 39 40 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 38 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
44 45 46 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 44 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
50 51 52 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 50 def invalid_rules @invalid_rules end |
#kind ⇒ String
Kind of result.
Corresponds to the JSON property kind
55 56 57 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 55 def kind @kind end |
#page_stats ⇒ Google::Apis::PagespeedonlineV1::Result::PageStats
Summary statistics for the page, such as number of JavaScript bytes, number of
HTML bytes, etc.
Corresponds to the JSON property pageStats
61 62 63 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 61 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
67 68 69 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 67 def response_code @response_code end |
#score ⇒ Fixnum
The PageSpeed Score (0-100), which indicates how much faster a page could be.
A high score indicates little room for improvement, while a lower score
indicates more room for improvement.
Corresponds to the JSON property score
74 75 76 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 74 def score @score end |
#screenshot ⇒ Google::Apis::PagespeedonlineV1::Result::Screenshot
Base64-encoded screenshot of the page that was analyzed.
Corresponds to the JSON property screenshot
79 80 81 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 79 def screenshot @screenshot end |
#title ⇒ String
Title of the page, as displayed in the browser's title bar.
Corresponds to the JSON property title
84 85 86 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 84 def title @title end |
#version ⇒ Google::Apis::PagespeedonlineV1::Result::Version
The version of PageSpeed used to generate these results.
Corresponds to the JSON property version
89 90 91 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 89 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 96 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) @page_stats = args[:page_stats] if args.key?(:page_stats) @response_code = args[:response_code] if args.key?(:response_code) @score = args[:score] if args.key?(:score) @screenshot = args[:screenshot] if args.key?(:screenshot) @title = args[:title] if args.key?(:title) @version = args[:version] if args.key?(:version) end |