Module: YunTongXun::Calls

Defined in:
lib/yun_tong_xun/calls.rb

Class Method Summary collapse

Class Method Details

.callback(from, to, options = {}) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/yun_tong_xun/calls.rb', line 9

def callback(from, to, options = {})
  opts = {
    sub_account_sid: YunTongXun.option_value(options, 'sub_account_sid') || YunTongXun.config.,
    sub_account_token: YunTongXun.option_value(options, 'sub_account_token') || YunTongXun.config.,
    func: func,
    funcdes: 'Callback'
  }
  YunTongXun.http_post(opts, options.merge(from: from, to: to))
end

.funcObject



5
6
7
# File 'lib/yun_tong_xun/calls.rb', line 5

def func
  'Calls'
end