Class: FinchAPI::Resources::Providers
- Inherits:
-
Object
- Object
- FinchAPI::Resources::Providers
- Defined in:
- lib/finch_api/resources/providers.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Providers
constructor
private
A new instance of Providers.
-
#list(request_options: {}) ⇒ FinchAPI::Internal::SinglePage<FinchAPI::Models::Provider>
Return details on all available payroll and HR systems.
Constructor Details
#initialize(client:) ⇒ Providers
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Providers.
28 29 30 |
# File 'lib/finch_api/resources/providers.rb', line 28 def initialize(client:) @client = client end |
Instance Method Details
#list(request_options: {}) ⇒ FinchAPI::Internal::SinglePage<FinchAPI::Models::Provider>
Return details on all available payroll and HR systems.
15 16 17 18 19 20 21 22 23 |
# File 'lib/finch_api/resources/providers.rb', line 15 def list(params = {}) @client.request( method: :get, path: "providers", page: FinchAPI::Internal::SinglePage, model: FinchAPI::Provider, options: params[:request_options] ) end |