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

Instance Method Details

#departmentsObject

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

#locationsObject

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_groupsObject

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

#regionsObject

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