Class: WavecellOtpAndSms::SendSms
- Inherits:
-
Object
- Object
- WavecellOtpAndSms::SendSms
- Includes:
- HTTParty
- Defined in:
- lib/wavecell_otp_and_sms/send_sms.rb
Instance Attribute Summary collapse
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#encoding ⇒ Object
Returns the value of attribute encoding.
-
#source ⇒ Object
Returns the value of attribute source.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SendSms
constructor
Initialize SMS parameters to send message to api.
-
#send ⇒ Object
Call this to generate url for the api calls.
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( = {}) @source = [:source] @destination = [:destination] @text = [:text] @encoding = [:encoding] end |
Instance Attribute Details
#destination ⇒ Object
Returns the value of attribute destination.
6 7 8 |
# File 'lib/wavecell_otp_and_sms/send_sms.rb', line 6 def destination @destination end |
#encoding ⇒ Object
Returns the value of attribute encoding.
6 7 8 |
# File 'lib/wavecell_otp_and_sms/send_sms.rb', line 6 def encoding @encoding end |
#source ⇒ Object
Returns the value of attribute source.
6 7 8 |
# File 'lib/wavecell_otp_and_sms/send_sms.rb', line 6 def source @source end |
#text ⇒ Object
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
#send ⇒ Object
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 |