Class: TypeFusion::SampleJob

Inherits:
Object
  • Object
show all
Includes:
Litejob
Defined in:
lib/type_fusion/sample_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(sample) ⇒ Object



11
12
13
14
15
# File 'lib/type_fusion/sample_job.rb', line 11

def perform(sample)
  LHC.json.post(TypeFusion.config.endpoint, body: { sample: JSON.parse(sample) })
rescue StandardError => e
  puts e.inspect
end