Class: StytchB2B::Discovery

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

Defined Under Namespace

Classes: IntermediateSessions, Organizations

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) ⇒ Discovery

Returns a new instance of Discovery.



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

def initialize(connection)
  @connection = connection

  @intermediate_sessions = StytchB2B::Discovery::IntermediateSessions.new(@connection)
  @organizations = StytchB2B::Discovery::Organizations.new(@connection)
end

Instance Attribute Details

#intermediate_sessionsObject (readonly)

Returns the value of attribute intermediate_sessions.



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

def intermediate_sessions
  @intermediate_sessions
end

#organizationsObject (readonly)

Returns the value of attribute organizations.



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

def organizations
  @organizations
end