Method: Spotlight::Etl::Sources.SourceMethodSource

Defined in:
app/services/spotlight/etl/sources.rb

.SourceMethodSource(method) ⇒ Object

A transform step that calls a method on the resource to generate a source



13
14
15
16
17
# File 'app/services/spotlight/etl/sources.rb', line 13

def self.SourceMethodSource(method) # rubocop:disable Naming/MethodName
  lambda do |context|
    context.resource.public_send(method)
  end
end