Class: Google::Apis::ChatV1::MatchedUrl
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::MatchedUrl
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
A matched url in a Chat message. Chat bots can unfurl matched URLs. For more information, refer to Unfurl links.
Instance Attribute Summary collapse
-
#url ⇒ String
The url that was matched.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MatchedUrl
constructor
A new instance of MatchedUrl.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MatchedUrl
Returns a new instance of MatchedUrl.
2363 2364 2365 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2363 def initialize(**args) update!(**args) end |
Instance Attribute Details
#url ⇒ String
The url that was matched.
Corresponds to the JSON property url
2361 2362 2363 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2361 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2368 2369 2370 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2368 def update!(**args) @url = args[:url] if args.key?(:url) end |