Class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pagespeedonline_v4/classes.rb,
generated/google/apis/pagespeedonline_v4/representations.rb,
generated/google/apis/pagespeedonline_v4/representations.rb
Overview
Metrics of end users' page loading experience.
Defined Under Namespace
Classes: Metric
Instance Attribute Summary collapse
-
#id ⇒ String
The url, pattern or origin which the metrics are on.
-
#initial_url ⇒ String
Corresponds to the JSON property
initial_url
. -
#metrics ⇒ Hash<String,Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience::Metric>
Corresponds to the JSON property
metrics
. -
#overall_category ⇒ String
Corresponds to the JSON property
overall_category
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LoadingExperience
constructor
A new instance of LoadingExperience.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LoadingExperience
Returns a new instance of LoadingExperience
521 522 523 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 521 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
504 505 506 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 504 def id @id end |
#initial_url ⇒ String
Corresponds to the JSON property initial_url
509 510 511 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 509 def initial_url @initial_url end |
#metrics ⇒ Hash<String,Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience::Metric>
Corresponds to the JSON property metrics
514 515 516 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 514 def metrics @metrics end |
#overall_category ⇒ String
Corresponds to the JSON property overall_category
519 520 521 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 519 def overall_category @overall_category end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
526 527 528 529 530 531 |
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 526 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) @overall_category = args[:overall_category] if args.key?(:overall_category) end |