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.
Instance Attribute Summary collapse
-
#app_uri ⇒ Google::Apis::ChatV1::GoogleAppsCardV1AppUri
Represents the platform specific uri/intent to open for each client.
-
#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.
1843 1844 1845 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1843 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_uri ⇒ Google::Apis::ChatV1::GoogleAppsCardV1AppUri
Represents the platform specific uri/intent to open for each client.
Corresponds to the JSON property appUri
1825 1826 1827 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1825 def app_uri @app_uri end |
#on_close ⇒ String
Whether the client forgets about a link after opening it, or observes it until
the window closes. Not supported by Chat apps.
Corresponds to the JSON property onClose
1831 1832 1833 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1831 def on_close @on_close end |
#open_as ⇒ String
How to open a link. Not supported by Chat apps.
Corresponds to the JSON property openAs
1836 1837 1838 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1836 def open_as @open_as end |
#url ⇒ String
The URL to open.
Corresponds to the JSON property url
1841 1842 1843 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1841 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1848 1849 1850 1851 1852 1853 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1848 def update!(**args) @app_uri = args[:app_uri] if args.key?(:app_uri) @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 |