Class: WavecellOtpAndSms::VerifyOtp

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @uid = options[:uid]
  @code = options[:code]
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



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

def code
  @code
end

#uidObject

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

#sendObject

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