Class: WavecellOtpAndSms::SendOtp
- Inherits:
-
Object
- Object
- WavecellOtpAndSms::SendOtp
- Includes:
- HTTParty
- Defined in:
- lib/wavecell_otp_and_sms/send_otp.rb
Instance Attribute Summary collapse
-
#country_code ⇒ Object
Returns the value of attribute country_code.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#product_name ⇒ Object
Returns the value of attribute product_name.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SendOtp
constructor
Initialize OTP parameters.
-
#send ⇒ Object
Call this to generate url for the api calls.
Constructor Details
#initialize(options = {}) ⇒ SendOtp
Initialize OTP parameters
9 10 11 12 13 |
# File 'lib/wavecell_otp_and_sms/send_otp.rb', line 9 def initialize( = {}) @destination = [:destination] @country_code = [:country_code] @product_name = [:product_name] end |
Instance Attribute Details
#country_code ⇒ Object
Returns the value of attribute country_code.
6 7 8 |
# File 'lib/wavecell_otp_and_sms/send_otp.rb', line 6 def country_code @country_code end |
#destination ⇒ Object
Returns the value of attribute destination.
6 7 8 |
# File 'lib/wavecell_otp_and_sms/send_otp.rb', line 6 def destination @destination end |
#product_name ⇒ Object
Returns the value of attribute product_name.
6 7 8 |
# File 'lib/wavecell_otp_and_sms/send_otp.rb', line 6 def product_name @product_name end |
Instance Method Details
#send ⇒ Object
Call this to generate url for the api calls
16 17 18 |
# File 'lib/wavecell_otp_and_sms/send_otp.rb', line 16 def send generate_url end |