Module: Paychex::Client::Locations
- Included in:
- Paychex::Client
- Defined in:
- lib/paychex/client/locations.rb
Instance Method Summary collapse
-
#location(company_id, location_id, options = {}) ⇒ Object
Get a specific location’s details.
-
#locations(company_id, options = {}) ⇒ Object
Get a list of the locations for a company.
Instance Method Details
#location(company_id, location_id, options = {}) ⇒ Object
Get a specific location’s details
10 11 12 |
# File 'lib/paychex/client/locations.rb', line 10 def location(company_id, location_id, = {}) get("companies/#{company_id}/locations/#{location_id}") end |
#locations(company_id, options = {}) ⇒ Object
Get a list of the locations for a company
5 6 7 |
# File 'lib/paychex/client/locations.rb', line 5 def locations(company_id, = {}) get("companies/#{company_id}/locations") end |