Class: WavecellOtpAndSms::SendOtp

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @destination = options[:destination]
  @country_code = options[:country_code]
  @product_name = options[:product_name]
end

Instance Attribute Details

#country_codeObject

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

#destinationObject

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_nameObject

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

#sendObject

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