Class: LobbyingDisclosureClient::Auth::Password::Reset

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/lobbying_disclosure_client/auth/password/reset.rb,
lib/lobbying_disclosure_client/auth/password/reset/confirm.rb

Defined Under Namespace

Classes: Confirm, Input, Output

Class Method Summary collapse

Class Method Details

.call(input:) ⇒ Object



23
24
25
26
27
28
29
30
# File 'lib/lobbying_disclosure_client/auth/password/reset.rb', line 23

def self.call(input:)
  client = Client.new
  response = client.post(LobbyingDisclosureClient::Enums::Route::Auth_Password_Reset, input.serialize)

  Output.new(
    detail: T.must(response['detail'])
  )
end