Class: Cb::Clients::EmployeeTypes

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

Instance Method Summary collapse

Instance Method Details

#searchObject



5
6
7
8
# File 'lib/cb/clients/employee_types.rb', line 5

def search
  json = cb_client.cb_get(endpoint)
  new_response_object(json)
end

#search_by_hostsite(host_site) ⇒ Object



10
11
12
13
# File 'lib/cb/clients/employee_types.rb', line 10

def search_by_hostsite(host_site)
  json = cb_client.cb_get(endpoint, :query => { :CountryCode => host_site })
  new_response_object(json)
end