Class: Google::Apis::ChatV1::GoogleAppsCardV1OpenLink
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1OpenLink
- 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
Represents an onClick
event that opens a hyperlink. Google Workspace Add-
ons and Chat apps:
Instance Attribute Summary collapse
-
#on_close ⇒ String
Whether the client forgets about a link after opening it, or observes it until the window closes.
-
#open_as ⇒ String
How to open a link.
-
#url ⇒ String
The URL to open.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1OpenLink
constructor
A new instance of GoogleAppsCardV1OpenLink.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1OpenLink
Returns a new instance of GoogleAppsCardV1OpenLink.
2498 2499 2500 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2498 def initialize(**args) update!(**args) end |
Instance Attribute Details
#on_close ⇒ String
Whether the client forgets about a link after opening it, or observes it until
the window closes. Google Workspace Add-ons:
Corresponds to the JSON property onClose
2485 2486 2487 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2485 def on_close @on_close end |
#open_as ⇒ String
How to open a link. Google Workspace Add-ons:
Corresponds to the JSON property openAs
2491 2492 2493 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2491 def open_as @open_as end |
#url ⇒ String
The URL to open.
Corresponds to the JSON property url
2496 2497 2498 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2496 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2503 2504 2505 2506 2507 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2503 def update!(**args) @on_close = args[:on_close] if args.key?(:on_close) @open_as = args[:open_as] if args.key?(:open_as) @url = args[:url] if args.key?(:url) end |