Class: Google::Apis::PagespeedonlineV5::PagespeedApiLoadingExperienceV5
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::PagespeedApiLoadingExperienceV5
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pagespeedonline_v5/classes.rb,
generated/google/apis/pagespeedonline_v5/representations.rb,
generated/google/apis/pagespeedonline_v5/representations.rb
Overview
The CrUX loading experience object that contains CrUX data breakdowns.
Instance Attribute Summary collapse
-
#id ⇒ String
The url, pattern or origin which the metrics are on.
-
#initial_url ⇒ String
The requested URL, which may differ from the resolved "id".
-
#metrics ⇒ Hash<String,Google::Apis::PagespeedonlineV5::UserPageLoadMetricV5>
The map of .
-
#origin_fallback ⇒ Boolean
(also: #origin_fallback?)
True if the result is an origin fallback from a page, false otherwise.
-
#overall_category ⇒ String
The human readable speed "category" of the id.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PagespeedApiLoadingExperienceV5
constructor
A new instance of PagespeedApiLoadingExperienceV5.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PagespeedApiLoadingExperienceV5
Returns a new instance of PagespeedApiLoadingExperienceV5.
508 509 510 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 508 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
The url, pattern or origin which the metrics are on.
Corresponds to the JSON property id
485 486 487 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 485 def id @id end |
#initial_url ⇒ String
The requested URL, which may differ from the resolved "id".
Corresponds to the JSON property initial_url
490 491 492 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 490 def initial_url @initial_url end |
#metrics ⇒ Hash<String,Google::Apis::PagespeedonlineV5::UserPageLoadMetricV5>
The map of .
Corresponds to the JSON property metrics
495 496 497 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 495 def metrics @metrics end |
#origin_fallback ⇒ Boolean Also known as: origin_fallback?
True if the result is an origin fallback from a page, false otherwise.
Corresponds to the JSON property origin_fallback
500 501 502 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 500 def origin_fallback @origin_fallback end |
#overall_category ⇒ String
The human readable speed "category" of the id.
Corresponds to the JSON property overall_category
506 507 508 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 506 def overall_category @overall_category end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
513 514 515 516 517 518 519 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 513 def update!(**args) @id = args[:id] if args.key?(:id) @initial_url = args[:initial_url] if args.key?(:initial_url) @metrics = args[:metrics] if args.key?(:metrics) @origin_fallback = args[:origin_fallback] if args.key?(:origin_fallback) @overall_category = args[:overall_category] if args.key?(:overall_category) end |