Class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrl
- Inherits:
-
Object
- Object
- Google::Apis::AcceleratedmobilepageurlV1::AmpUrl
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/acceleratedmobilepageurl_v1/classes.rb,
generated/google/apis/acceleratedmobilepageurl_v1/representations.rb,
generated/google/apis/acceleratedmobilepageurl_v1/representations.rb
Overview
AMP URL response for a requested URL.
Instance Attribute Summary collapse
-
#amp_url ⇒ String
The AMP URL pointing to the publisher's web server.
-
#cdn_amp_url ⇒ String
The AMP Cache URL pointing to the cached document in the Google AMP Cache.
-
#original_url ⇒ String
The original non-AMP URL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AmpUrl
constructor
A new instance of AmpUrl.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AmpUrl
Returns a new instance of AmpUrl
131 132 133 |
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 131 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amp_url ⇒ String
The AMP URL pointing to the publisher's web server.
Corresponds to the JSON property ampUrl
129 130 131 |
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 129 def amp_url @amp_url end |
#cdn_amp_url ⇒ String
The AMP Cache URL pointing to
the cached document in the Google AMP Cache.
Corresponds to the JSON property cdnAmpUrl
119 120 121 |
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 119 def cdn_amp_url @cdn_amp_url end |
#original_url ⇒ String
The original non-AMP URL.
Corresponds to the JSON property originalUrl
124 125 126 |
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 124 def original_url @original_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
136 137 138 139 140 |
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 136 def update!(**args) @cdn_amp_url = args[:cdn_amp_url] if args.key?(:cdn_amp_url) @original_url = args[:original_url] if args.key?(:original_url) @amp_url = args[:amp_url] if args.key?(:amp_url) end |