Class: Bob::Employee::Invites

Inherits:
API
  • Object
show all
Defined in:
lib/bob/api/employee/invites.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

.revoke(employee_id) ⇒ Object



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

def self.revoke(employee_id)
  post("employees/#{employee_id}/uninvite")
end

.send(employee_id, wizard_id) ⇒ Object



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

def self.send(employee_id, wizard_id)
  post("employees/#{employee_id}/invitations", { welcomeWizardId: wizard_id })
end