Class: Cb::EmployeeTypesApi

Inherits:
Object
  • Object
show all
Defined in:
lib/cb/clients/employee_types_api.rb

Class Method Summary collapse

Class Method Details

.searchObject



6
7
8
9
10
11
# File 'lib/cb/clients/employee_types_api.rb', line 6

def self.search
  my_api = Cb::Utils::Api.new()
  cb_response = my_api.cb_get(Cb.configuration.uri_employee_types)
  
  return array_of_objects_from_hash(cb_response)
end

.search_by_host_site(hostsite) ⇒ Object



13
14
15
16
17
18
# File 'lib/cb/clients/employee_types_api.rb', line 13

def self.search_by_host_site(hostsite)
  my_api = Cb::Utils::Api.new()
  cb_response = my_api.cb_get(Cb.configuration.uri_employee_types, :query => {:CountryCode => hostsite})

  return array_of_objects_from_hash(cb_response)
end