Class: Google::Apis::ChatV1::MatchedUrl

Inherits:
Object
  • Object
show all
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 apps can preview matched URLs. For more information, refer to Preview links.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MatchedUrl

Returns a new instance of MatchedUrl.



2376
2377
2378
# File 'lib/google/apis/chat_v1/classes.rb', line 2376

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#urlString

Output only. The url that was matched. Corresponds to the JSON property url

Returns:

  • (String)


2374
2375
2376
# File 'lib/google/apis/chat_v1/classes.rb', line 2374

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2381
2382
2383
# File 'lib/google/apis/chat_v1/classes.rb', line 2381

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