Class: Bob::Employee::Documents

Inherits:
API
  • Object
show all
Defined in:
lib/bob/api/employee/documents.rb

Constant Summary

Constants inherited from API

API::BASE_URL, API::SANDBOX_URL

Class Method Summary collapse

Methods inherited from API

build_url, create_csv, delete, get, headers, post, post_file, post_media, put

Class Method Details

.add_private_document(employee_id, params = {}) ⇒ Object



10
11
12
# File 'lib/bob/api/employee/documents.rb', line 10

def self.add_private_document(employee_id, params = {})
  post("docs/people/#{employee_id}/confidential", params)
end

.add_public_document(employee_id, params = {}) ⇒ Object



6
7
8
# File 'lib/bob/api/employee/documents.rb', line 6

def self.add_public_document(employee_id, params = {})
  post("docs/people/#{employee_id}/shared", params)
end

.upload_public_document(employee_id, file_path) ⇒ Object



14
15
16
# File 'lib/bob/api/employee/documents.rb', line 14

def self.upload_public_document(employee_id, file_path)
  post_file("docs/people/#{employee_id}/shared/upload", file_path)
end