Module: Paychex::Client::Organizations

Included in:
Paychex::Client
Defined in:
lib/paychex/client/organizations.rb

Instance Method Summary collapse

Instance Method Details

#organization(company_id, organization_id) ⇒ Object

Get a specific organization’s details



10
11
12
# File 'lib/paychex/client/organizations.rb', line 10

def organization(company_id, organization_id)
  get("companies/#{company_id}/organizations/#{organization_id}")
end

#organizations(company_id) ⇒ Object

Get a list of the organizations for a company



5
6
7
# File 'lib/paychex/client/organizations.rb', line 5

def organizations(company_id)
  get("companies/#{company_id}/organizations")
end