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
A new instance of Providers.
-
#list(params = {}) ⇒ FinchAPI::SinglePage<FinchAPI::Models::Provider>
Return details on all available payroll and HR systems.
Constructor Details
#initialize(client:) ⇒ Providers
Returns a new instance of Providers.
24 25 26 |
# File 'lib/finch-api/resources/providers.rb', line 24 def initialize(client:) @client = client end |
Instance Method Details
#list(params = {}) ⇒ FinchAPI::SinglePage<FinchAPI::Models::Provider>
Return details on all available payroll and HR systems.
13 14 15 16 17 18 19 20 21 |
# File 'lib/finch-api/resources/providers.rb', line 13 def list(params = {}) @client.request( method: :get, path: "providers", page: FinchAPI::SinglePage, model: FinchAPI::Models::Provider, options: params[:request_options] ) end |