Class: StytchB2B::OTPs

Inherits:
Object
  • Object
show all
Includes:
Stytch::RequestHelper
Defined in:
lib/stytch/b2b_otp.rb

Defined Under Namespace

Classes: Email, Sms

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Stytch::RequestHelper

#delete_request, #get_request, #post_request, #put_request, #request_with_query_params

Constructor Details

#initialize(connection) ⇒ OTPs

Returns a new instance of OTPs.



16
17
18
19
20
21
# File 'lib/stytch/b2b_otp.rb', line 16

def initialize(connection)
  @connection = connection

  @sms = StytchB2B::OTPs::Sms.new(@connection)
  @email = StytchB2B::OTPs::Email.new(@connection)
end

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



14
15
16
# File 'lib/stytch/b2b_otp.rb', line 14

def email
  @email
end

#smsObject (readonly)

Returns the value of attribute sms.



14
15
16
# File 'lib/stytch/b2b_otp.rb', line 14

def sms
  @sms
end