Skip to content

Commit

Permalink
add comments for intellibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Ches-ctrl committed Jul 26, 2024
1 parent e207f69 commit cd2228e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/services/importer/get_ashby_fields.rb
Original file line number Diff line number Diff line change
@@ -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 = {
Expand All @@ -9,8 +15,6 @@ def initialize(job, data)
standard_fields: STANDARD_FIELDS,
types: TYPES
}
@section_index = nil

super(job, data, options)
end

Expand Down
2 changes: 2 additions & 0 deletions app/services/importer/get_greenhouse_fields.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit cd2228e

Please sign in to comment.