Class: Fountain::Api::Applicants
- Inherits:
-
Object
- Object
- Fountain::Api::Applicants
- Includes:
- RequestHelper
- Defined in:
- lib/fountain/api/applicants.rb
Overview
Fountain Applicant API
Constant Summary
Constants included from RequestHelper
RequestHelper::DEFAULT_REQUEST_OPTIONS
Instance Method Summary collapse
-
#list(filter_options = {}) ⇒ Array
List applicants.
-
#update(applicant_id, update_options = {}) ⇒ Fountain::Applicant
Update applicant info.
Methods included from RequestHelper
Instance Method Details
#list(filter_options = {}) ⇒ Array
List applicants
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/fountain/api/applicants.rb', line 18 def list( = {}) response = request_json( '/v2/applicants', body: Util.slice_hash( , :funnel_id, :stage_id, :stage, :labels, :cursor ) ) Fountain::Applicants.new response end |
#update(applicant_id, update_options = {}) ⇒ Fountain::Applicant
Update applicant info
43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/fountain/api/applicants.rb', line 43 def update(applicant_id, = {}) response = request_json( "/v2/applicants/#{applicant_id}", method: :put, body: Util.slice_hash( , :name, :email, :phone_number, :data, :secure_data, :rejection_reason, :on_hold_reason ) ) Fountain::Applicant.new response end |