Class: LobbyingDisclosureClient::Auth::Login

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/lobbying_disclosure_client/auth/login.rb

Defined Under Namespace

Classes: 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/login.rb', line 23

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

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