class Moceansdk::Modules::Command::McObject::SendSMS

Public Instance Methods

action() click to toggle source
# File lib/moceansdk/modules/command/mc_object/send_sms.rb, line 7
def action
  'send-sms'
end
content(text) click to toggle source
# File lib/moceansdk/modules/command/mc_object/send_sms.rb, line 29
def content(text)
  @params[:'content'] = {}
  @params[:'content'][:'text'] = text
  @params[:'content'][:'type'] = 'text'
  return self
end
from(from, contact_type = 'phone_num') click to toggle source
# File lib/moceansdk/modules/command/mc_object/send_sms.rb, line 15
def from(from, contact_type = 'phone_num')
  @params[:'from'] = {}
  @params[:'from'][:'id'] = from
  @params[:'from'][:'type'] = contact_type
  return self
end
required_key() click to toggle source
# File lib/moceansdk/modules/command/mc_object/send_sms.rb, line 11
def required_key
  ['from','to','content']
end
to(to, contact_type = "phone_num") click to toggle source
# File lib/moceansdk/modules/command/mc_object/send_sms.rb, line 22
def to(to, contact_type = "phone_num")
  @params[:'to'] = {}
  @params[:'to'][:'id'] = to
  @params[:'to'][:'type'] = contact_type
  return self
end