Class: TypeFusion::SampleJob
- Inherits:
-
Object
- Object
- TypeFusion::SampleJob
- 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 |