Class: Viberroo::Input::Button
- Inherits:
-
Object
- Object
- Viberroo::Input::Button
- Defined in:
- lib/input.rb
Class Method Summary collapse
- .location_picker(params = {}) ⇒ Object
- .none(params = {}) ⇒ Object
- .reply(params = {}) ⇒ Object
- .url(params = {}) ⇒ Object
Class Method Details
.location_picker(params = {}) ⇒ Object
12 13 14 15 16 |
# File 'lib/input.rb', line 12 def self.location_picker(params = {}) { ActionType: 'location-picker', min_api_version: 3 }.merge(params) end |
.none(params = {}) ⇒ Object
18 19 20 |
# File 'lib/input.rb', line 18 def self.none(params = {}) { ActionType: 'none' }.merge(params) end |
.reply(params = {}) ⇒ Object
4 5 6 |
# File 'lib/input.rb', line 4 def self.reply(params = {}) { ActionType: 'reply' }.merge(params) end |
.url(params = {}) ⇒ Object
8 9 10 |
# File 'lib/input.rb', line 8 def self.url(params = {}) { ActionType: 'open-url' }.merge(params) end |