Class: Slimer::Substance

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/slimer/substance.rb

Overview

A data object Slimer consumes

Class Method Summary collapse

Class Method Details

.consume(payload, options = {}) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/slimer/substance.rb', line 10

def self.consume(payload, options = {})
   = options.delete(:metadata)
  group = options.delete(:group) || Slimer::DEFAULT_GROUP

  Slimer::Workers::IngestSubstance.perform_async(
    payload,
    group,
    
  )
end