Class: Wavix::TwoFa::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/wavix/two_fa/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ void

Parameters:



9
10
11
# File 'lib/wavix/two_fa/client.rb', line 9

def initialize(client:)
  @client = client
end

Instance Method Details

#eventsWavix::Events::Client

Returns:

  • (Wavix::Events::Client)


24
25
26
# File 'lib/wavix/two_fa/client.rb', line 24

def events
  @events ||= Wavix::TwoFa::Events::Client.new(client: @client)
end

#sessionsWavix::Sessions::Client

Returns:

  • (Wavix::Sessions::Client)


19
20
21
# File 'lib/wavix/two_fa/client.rb', line 19

def sessions
  @sessions ||= Wavix::TwoFa::Sessions::Client.new(client: @client)
end

#verificationWavix::Verification::Client

Returns:

  • (Wavix::Verification::Client)


14
15
16
# File 'lib/wavix/two_fa/client.rb', line 14

def verification
  @verification ||= Wavix::TwoFa::Verification::Client.new(client: @client)
end