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