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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chromeuxreport_v1/classes.rb,
lib/google/apis/chromeuxreport_v1/representations.rb,
lib/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.



674
675
676
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 674

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)


667
668
669
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 667

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)


672
673
674
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 672

def original_url
  @original_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



679
680
681
682
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 679

def update!(**args)
  @normalized_url = args[:normalized_url] if args.key?(:normalized_url)
  @original_url = args[:original_url] if args.key?(:original_url)
end