class BambooHR::Client
Attributes
key[RW]
subdomain[RW]
Public Instance Methods
employee_list()
click to toggle source
# File lib/bamboohr/client.rb, line 17 def employee_list JSON.parse employee_list!.body end
employee_list!()
click to toggle source
# 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
Private Instance Methods
auth()
click to toggle source
# File lib/bamboohr/client.rb, line 26 def auth { username: key, password: "x" } end
headers()
click to toggle source
# File lib/bamboohr/client.rb, line 22 def headers { 'Accept' => 'application/json' } end