Class: LobbyingDisclosureClient::V1::Lobbyists::ListLobbyists

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

Defined Under Namespace

Classes: Input, Output

Class Method Summary collapse

Class Method Details

.call(input:) ⇒ Object



36
37
38
39
40
41
42
43
44
45
# File 'lib/lobbying_disclosure_client/v1/lobbyists/list_lobbyists.rb', line 36

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

  Output.from_hash!(
    client.get(
      LobbyingDisclosureClient::Enums::Route::V1_Lobbyists_ListLobbyists,
      query_params: input.serialize.compact
    )
  )
end