Class: LobbyingDisclosureClient::V1::Constants::Lobbyist::ListLobbyistPrefixes

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/lobbying_disclosure_client/v1/constants/lobbyist/list_lobbyist_prefixes.rb

Class Method Summary collapse

Class Method Details

.callObject



14
15
16
17
18
19
20
21
# File 'lib/lobbying_disclosure_client/v1/constants/lobbyist/list_lobbyist_prefixes.rb', line 14

def self.call
  client = Client.new
  client.get(
    LobbyingDisclosureClient::Enums::Route::V1_Constants_Lobbyist_Prefixes
  ).map do |constant|
    LobbyingDisclosureClient::Types::Constant.from_hash!(constant)
  end
end