Class: Viberroo::Input
- Inherits:
-
Object
- Object
- Viberroo::Input
- Defined in:
- lib/viberroo/input.rb
Class Method Summary collapse
- .keyboard(params) ⇒ Object
- .location_picker_button(params) ⇒ Object
- .none_button(params = {}) ⇒ Object
- .reply_button(params) ⇒ Object
- .share_phone_button(params) ⇒ Object
- .url_button(params) ⇒ Object
Class Method Details
.keyboard(params) ⇒ Object
3 4 5 |
# File 'lib/viberroo/input.rb', line 3 def self.keyboard(params) { keyboard: { Type: 'keyboard' }.merge(params) } end |
.location_picker_button(params) ⇒ Object
15 16 17 18 19 |
# File 'lib/viberroo/input.rb', line 15 def self.(params) { ActionType: 'location-picker', min_api_version: 3 }.merge(params) end |
.none_button(params = {}) ⇒ Object
27 28 29 |
# File 'lib/viberroo/input.rb', line 27 def self.(params = {}) { ActionType: 'none' }.merge(params) end |
.reply_button(params) ⇒ Object
7 8 9 |
# File 'lib/viberroo/input.rb', line 7 def self.(params) { ActionType: 'reply' }.merge(params) end |
.share_phone_button(params) ⇒ Object
21 22 23 24 25 |
# File 'lib/viberroo/input.rb', line 21 def self.(params) { ActionType: 'share-phone', min_api_version: 3 }.merge(params) end |
.url_button(params) ⇒ Object
11 12 13 |
# File 'lib/viberroo/input.rb', line 11 def self.(params) { ActionType: 'open-url' }.merge(params) end |