Class: Tay::Specification::WebIntent
- Inherits:
-
Object
- Object
- Tay::Specification::WebIntent
- Defined in:
- lib/tay/specification/web_intent.rb
Overview
Represents a web intent that your extension provides. For more info check the Google Chrome extension docs, and spec at the URLs below.
Instance Attribute Summary collapse
-
#action ⇒ Object
The “title” is displayed in the intent picker UI when the user initiates the action specific to the handler.
-
#disposition ⇒ Object
Intents with “window” disposition will open a new tab when invoked, those with “inline” disposition will be displayed inside the intent picker when invoked.
-
#href ⇒ Object
The “title” is displayed in the intent picker UI when the user initiates the action specific to the handler.
-
#title ⇒ Object
The “title” is displayed in the intent picker UI when the user initiates the action specific to the handler.
-
#types ⇒ Object
An array of mime types that your intent can act upon.
Instance Method Summary collapse
-
#initialize ⇒ WebIntent
constructor
A new instance of WebIntent.
Constructor Details
#initialize ⇒ WebIntent
Returns a new instance of WebIntent.
35 36 37 |
# File 'lib/tay/specification/web_intent.rb', line 35 def initialize @types = [] end |
Instance Attribute Details
#action ⇒ Object
The “title” is displayed in the intent picker UI when the user initiates the action specific to the handler.
13 14 15 |
# File 'lib/tay/specification/web_intent.rb', line 13 def action @action end |
#disposition ⇒ Object
Intents with “window” disposition will open a new tab when invoked, those with “inline” disposition will be displayed inside the intent picker when invoked.
29 30 31 |
# File 'lib/tay/specification/web_intent.rb', line 29 def disposition @disposition end |
#href ⇒ Object
The “title” is displayed in the intent picker UI when the user initiates the action specific to the handler.
23 24 25 |
# File 'lib/tay/specification/web_intent.rb', line 23 def href @href end |
#title ⇒ Object
The “title” is displayed in the intent picker UI when the user initiates the action specific to the handler.
18 19 20 |
# File 'lib/tay/specification/web_intent.rb', line 18 def title @title end |
#types ⇒ Object
An array of mime types that your intent can act upon
33 34 35 |
# File 'lib/tay/specification/web_intent.rb', line 33 def types @types end |