class Google::Apis::AcceleratedmobilepageurlV1::AmpUrl
AMP URL response for a requested URL.
Attributes
amp_url[RW]
The AMP URL pointing to the publisher's web server. Corresponds to the JSON property `ampUrl` @return [String]
cdn_amp_url[RW]
The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to the cached document in the Google
AMP Cache. Corresponds to the JSON property `cdnAmpUrl` @return [String]
original_url[RW]
The original non-AMP URL. Corresponds to the JSON property `originalUrl` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/acceleratedmobilepageurl_v1/classes.rb, line 45 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/acceleratedmobilepageurl_v1/classes.rb, line 50 def update!(**args) @amp_url = args[:amp_url] if args.key?(:amp_url) @cdn_amp_url = args[:cdn_amp_url] if args.key?(:cdn_amp_url) @original_url = args[:original_url] if args.key?(:original_url) end