Class: Viberroo::Input

Inherits:
Object
  • Object
show all
Defined in:
lib/viberroo/input.rb

Class Method Summary collapse

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.location_picker_button(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.none_button(params = {})
  { ActionType: 'none' }.merge(params)
end

.reply_button(params) ⇒ Object



7
8
9
# File 'lib/viberroo/input.rb', line 7

def self.reply_button(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.share_phone_button(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.url_button(params)
  { ActionType: 'open-url' }.merge(params)
end