Class: BambooHR::Client
- Inherits:
-
Object
- Object
- BambooHR::Client
- Includes:
- HTTParty
- Defined in:
- lib/bamboohr/client.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#subdomain ⇒ Object
Returns the value of attribute subdomain.
Instance Method Summary collapse
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
10 11 12 |
# File 'lib/bamboohr/client.rb', line 10 def key @key end |
#subdomain ⇒ Object
Returns the value of attribute subdomain.
11 12 13 |
# File 'lib/bamboohr/client.rb', line 11 def subdomain @subdomain end |
Instance Method Details
#employee_list ⇒ Object
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 |