Module: PeopleGroup::Connectors::Workday::XML::GetOrganizations
- Included in:
- Client
- Defined in:
- lib/peoplegroup/connectors/workday/xml/get_organizations.rb
Overview
GetOrganization operation.
Constant Summary collapse
- OPERATION =
The Operation for this Module
:get_organizations
Instance Method Summary collapse
-
#departments ⇒ Object
List all of the active departments.
-
#locations ⇒ Object
List all of the active entities.
-
#pay_groups ⇒ Object
List all of the active pay groups.
-
#regions ⇒ Object
List all of the active regions.
Instance Method Details
#departments ⇒ Object
List all of the active departments.
16 17 18 |
# File 'lib/peoplegroup/connectors/workday/xml/get_organizations.rb', line 16 def departments get('Cost_Center') end |
#locations ⇒ Object
List all of the active entities.
26 27 28 |
# File 'lib/peoplegroup/connectors/workday/xml/get_organizations.rb', line 26 def locations @locations ||= get('Company').map { |location| location[:reference_id] } end |
#pay_groups ⇒ Object
List all of the active pay groups.
31 32 33 |
# File 'lib/peoplegroup/connectors/workday/xml/get_organizations.rb', line 31 def pay_groups get('Pay_Group') end |
#regions ⇒ Object
List all of the active regions.
21 22 23 |
# File 'lib/peoplegroup/connectors/workday/xml/get_organizations.rb', line 21 def regions get('Region') end |