Class: BambooHR::Client

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/bamboohr/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key.



10
11
12
# File 'lib/bamboohr/client.rb', line 10

def key
  @key
end

#subdomainObject

Returns the value of attribute subdomain.



11
12
13
# File 'lib/bamboohr/client.rb', line 11

def subdomain
  @subdomain
end

Instance Method Details

#employee_listObject



17
18
19
# File 'lib/bamboohr/client.rb', line 17

def employee_list
  JSON.parse employee_list!.body
end

#employee_list!Object



13
14
15
# File 'lib/bamboohr/client.rb', line 13

def employee_list!
  self.class.get("/api/gateway.php/#{subdomain}/v1/employees/directory", basic_auth: auth, headers: headers)
end