Sha256: b15c0bac869345f20dffd3167edded69992ed4d3c4f707f49292695acfdc076b
Contents?: true
Size: 771 Bytes
Versions: 2
Compression:
Stored size: 771 Bytes
Contents
require 'aliyun/cloud_sms/request/base' module Aliyun module CloudSms module Request class MessageSend < Base attr_accessor :mobile, :template_code, :template_param def initialize(mobile, template_code, template_param) self.mobile = mobile self.template_code = template_code self.template_param = template_param end def action "SendSms" end def custom_params self.template_param = self.template_param.to_json if self.template_param.is_a?(Hash) { :PhoneNumbers => self.mobile, :TemplateCode => self.template_code, :TemplateParam => self.template_param.to_s, } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aliyun-cloud_sms-0.2.1 | lib/aliyun/cloud_sms/request/message_send.rb |
aliyun-cloud_sms-0.2.0 | lib/aliyun/cloud_sms/request/message_send.rb |