Class: YunPianSMS::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/yunpian_sms/template.rb

Class Method Summary collapse

Class Method Details

.allObject



7
8
9
# File 'lib/yunpian_sms/template.rb', line 7

def self.all
  get_templates({ apikey: YunPianSMS.api_key })
end

.find(template_id) ⇒ Object



11
12
13
# File 'lib/yunpian_sms/template.rb', line 11

def self.find template_id
  get_templates({ apikey: YunPianSMS.api_key, tpl_id: template_id })
end