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



14
15
16
17
# File 'lib/cb/clients/employee_types.rb', line 14

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

#search_by_hostsite(host_site) ⇒ Object



19
20
21
22
# File 'lib/cb/clients/employee_types.rb', line 19

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