Class: Google::Apis::ChromeuxreportV1::UrlNormalization

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_urlString

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

Returns:

  • (String)


289
290
291
# File 'generated/google/apis/chromeuxreport_v1/classes.rb', line 289

def normalized_url
  @normalized_url
end

#original_urlString

The original requested URL prior to any normalization actions. Corresponds to the JSON property originalUrl

Returns:

  • (String)


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