diff --git a/app/services/importer/get_ashby_fields.rb b/app/services/importer/get_ashby_fields.rb index 2c16dc8d..7a15c53a 100644 --- a/app/services/importer/get_ashby_fields.rb +++ b/app/services/importer/get_ashby_fields.rb @@ -1,6 +1,12 @@ # frozen_string_literal: true module Importer + # Calls the base API class with options specific to the ATS + # Options are a fixed list limited to the below + # One-line methods are mostly for matching the generic structure to the particular API structure + # Ashby has always 1x ApplicationForm (JSON) and can have many SurveyForms (Array) + # StandardFields replaces the ID with our structure of JSON fields for each of the StandardFields found + # TYPES maps the Ashby field types to our standard field types class GetAshbyFields < GetApiFields def initialize(job, data) options = { @@ -9,8 +15,6 @@ def initialize(job, data) standard_fields: STANDARD_FIELDS, types: TYPES } - @section_index = nil - super(job, data, options) end diff --git a/app/services/importer/get_greenhouse_fields.rb b/app/services/importer/get_greenhouse_fields.rb index 9515146c..3a2011e2 100644 --- a/app/services/importer/get_greenhouse_fields.rb +++ b/app/services/importer/get_greenhouse_fields.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true module Importer + # company_id is the ATS identifier for the company + # Needs the company_id to fetch the education options class GetGreenhouseFields < GetApiFields def initialize(job, data) @company_id = job.company.ats_identifier