Class: Lattice::Employees
Constant Summary
Constants inherited from Client
Client::BASE_URL, Client::TOKEN_URL
Class Method Summary collapse
-
.all ⇒ Array<Hash>
Retrieves a list of all employees from Lattice.
-
.find(id) ⇒ Hash
Retrieves a specific employee’s details from Lattice by their ID.
Methods inherited from Client
access_token, build_url, get, headers, paginated_get
Class Method Details
.all ⇒ Array<Hash>
Retrieves a list of all employees from Lattice.
13 14 15 |
# File 'lib/lattice/employees.rb', line 13 def self.all paginated_get("/employees") end |
.find(id) ⇒ Hash
Retrieves a specific employee’s details from Lattice by their ID.
24 25 26 |
# File 'lib/lattice/employees.rb', line 24 def self.find(id) get("/employees/#{id}")["data"] end |