Module: AliDayu

Defined in:
lib/ali_dayu.rb,
lib/ali_dayu/version.rb

Defined Under Namespace

Classes: Base, Sms, Voice

Constant Summary collapse

VERSION =
"0.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.app_keyObject

Returns the value of attribute app_key.



12
13
14
# File 'lib/ali_dayu.rb', line 12

def app_key
  @app_key
end

.app_secretObject

Returns the value of attribute app_secret.



12
13
14
# File 'lib/ali_dayu.rb', line 12

def app_secret
  @app_secret
end

.post_urlObject

Returns the value of attribute post_url.



12
13
14
# File 'lib/ali_dayu.rb', line 12

def post_url
  @post_url
end

Class Method Details

.sms_send(telphones, sms_param, sms_template_code, sms_free_sign_name, extend = "", options = {}) ⇒ Object



14
15
16
# File 'lib/ali_dayu.rb', line 14

def sms_send telphones, sms_param, sms_template_code, sms_free_sign_name, extend="", options={}
  Sms.new(options).deliver(telphones, sms_param, sms_template_code, sms_free_sign_name, extend)
end

.voice_send(telphones, sms_param, tts_code, called_show_num, extend = "", options = {}) ⇒ Object



18
19
20
# File 'lib/ali_dayu.rb', line 18

def voice_send telphones, sms_param, tts_code, called_show_num, extend="", options={}
  Voice.new(options).deliver(telphones, sms_param, tts_code, called_show_num, extend)
end