Class: LobbyingDisclosureClient::V1::Registrants::RetrieveRegistrant

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/lobbying_disclosure_client/v1/registrants/retrieve_registrant.rb

Defined Under Namespace

Classes: Input

Constant Summary collapse

Output =
T.type_alias do
  LobbyingDisclosureClient::Types::Registrant
end

Class Method Summary collapse

Class Method Details

.call(input:) ⇒ Object



23
24
25
26
27
28
29
30
31
32
# File 'lib/lobbying_disclosure_client/v1/registrants/retrieve_registrant.rb', line 23

def self.call(input:)
  client = Client.new

  LobbyingDisclosureClient::Types::Registrant.from_hash!(
    client.get(
      LobbyingDisclosureClient::Enums::Route::V1_Registrants_RetrieveRegistrant,
      path_params: [input.id]
    )
  )
end