Class: Google::Apis::ChromeuxreportV1::UrlNormalization
- Inherits:
-
Object
- Object
- Google::Apis::ChromeuxreportV1::UrlNormalization
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/chromeuxreport_v1/classes.rb,
generated/google/apis/chromeuxreport_v1/representations.rb,
generated/google/apis/chromeuxreport_v1/representations.rb
Overview
Object representing the normalization actions taken to normalize a url to
achieve a higher chance of successful lookup. These are simple automated
changes that are taken when looking up the provided url_patten
would be
known to fail. Complex actions like following redirects are not handled.
Instance Attribute Summary collapse
-
#normalized_url ⇒ String
The URL after any normalization actions.
-
#original_url ⇒ String
The original requested URL prior to any normalization actions.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UrlNormalization
constructor
A new instance of UrlNormalization.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UrlNormalization
Returns a new instance of UrlNormalization.
296 297 298 |
# File 'generated/google/apis/chromeuxreport_v1/classes.rb', line 296 def initialize(**args) update!(**args) end |
Instance Attribute Details
#normalized_url ⇒ String
The URL after any normalization actions. This is a valid user experience URL
that could reasonably be looked up.
Corresponds to the JSON property normalizedUrl
289 290 291 |
# File 'generated/google/apis/chromeuxreport_v1/classes.rb', line 289 def normalized_url @normalized_url end |
#original_url ⇒ String
The original requested URL prior to any normalization actions.
Corresponds to the JSON property originalUrl
294 295 296 |
# File 'generated/google/apis/chromeuxreport_v1/classes.rb', line 294 def original_url @original_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
301 302 303 304 |
# File 'generated/google/apis/chromeuxreport_v1/classes.rb', line 301 def update!(**args) @normalized_url = args[:normalized_url] if args.key?(:normalized_url) @original_url = args[:original_url] if args.key?(:original_url) end |