Class: WavecellOtpAndSms::SendSms

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/wavecell_otp_and_sms/send_sms.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ SendSms

Initialize SMS parameters to send message to api



9
10
11
12
13
14
# File 'lib/wavecell_otp_and_sms/send_sms.rb', line 9

def initialize(options = {})
  @source = options[:source]
  @destination = options[:destination]
  @text = options[:text]
  @encoding = options[:encoding]
end

Instance Attribute Details

#destinationObject

Returns the value of attribute destination.



6
7
8
# File 'lib/wavecell_otp_and_sms/send_sms.rb', line 6

def destination
  @destination
end

#encodingObject

Returns the value of attribute encoding.



6
7
8
# File 'lib/wavecell_otp_and_sms/send_sms.rb', line 6

def encoding
  @encoding
end

#sourceObject

Returns the value of attribute source.



6
7
8
# File 'lib/wavecell_otp_and_sms/send_sms.rb', line 6

def source
  @source
end

#textObject

Returns the value of attribute text.



6
7
8
# File 'lib/wavecell_otp_and_sms/send_sms.rb', line 6

def text
  @text
end

Instance Method Details

#sendObject

Call this to generate url for the api calls



17
18
19
# File 'lib/wavecell_otp_and_sms/send_sms.rb', line 17

def send
  generate_url
end