Class: Slimer::Substance
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- Slimer::Substance
- 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, = {}) = .delete(:metadata) group = .delete(:group) || Slimer::DEFAULT_GROUP Slimer::Workers::IngestSubstance.perform_async( payload, group, ) end |