Skip to content

Commit

Permalink
Updated it properly this time.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sussman committed Aug 2, 2024
1 parent 51b650a commit 4b3ac37
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
8 changes: 3 additions & 5 deletions app/models/concerns/ats/workable/application_fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ module ApplicationFields
# TODO: Check validatity of fields (not yet tested)
# TODO: Handle labels from form fields

def get_application_question_set(_job, _data)
p "Getting Workable application criteria"

# Importer::WorkableFieldsFormatter.call(data)
[] # TODO: Delete this line and uncomment the line above.
def get_application_question_set(_job, data)
formatted_data = Importer::WorkableFieldsFormatter.call(data.with_indifferent_access)
Importer::FieldsBuilder.call(formatted_data)
end

def update_requirements(_job)
Expand Down
20 changes: 19 additions & 1 deletion app/services/importer/workable_fields_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

module Importer
class WorkableFieldsFormatter < ApplicationTask
# all yours, JB!
def initialize(data)
@data = data
end

def call
return [] unless processable

process
end

private

def processable
false
end

def process
# All yours, JB!
end
end
end

0 comments on commit 4b3ac37

Please sign in to comment.