Class: Viberroo::Input::Button

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

Class Method Summary collapse

Class Method Details

.location_picker(params = {}) ⇒ Object



12
13
14
15
16
# File 'lib/viberroo/input.rb', line 12

def self.location_picker(params = {})
  { ActionType: 'location-picker',
    min_api_version: 3
  }.merge(params)
end

.none(params = {}) ⇒ Object



24
25
26
# File 'lib/viberroo/input.rb', line 24

def self.none(params = {})
  { ActionType: 'none' }.merge(params)
end

.reply(params = {}) ⇒ Object



4
5
6
# File 'lib/viberroo/input.rb', line 4

def self.reply(params = {})
  { ActionType: 'reply' }.merge(params)
end

.share_phone(params = {}) ⇒ Object



18
19
20
21
22
# File 'lib/viberroo/input.rb', line 18

def self.share_phone(params = {})
  { ActionType: 'share-phone',
    min_api_version: 3
  }.merge(params)
end

.url(params = {}) ⇒ Object



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

def self.url(params = {})
  { ActionType: 'open-url' }.merge(params)
end