Class: StellarBase::ConfiguredClassRunner

Inherits:
Object
  • Object
show all
Defined in:
app/services/stellar_base/configured_class_runner.rb

Constant Summary collapse

DEFAULT =
nil

Class Method Summary collapse

Class Method Details

.call(class_name) ⇒ Object

[View source]

6
7
8
9
10
11
12
13
# File 'app/services/stellar_base/configured_class_runner.rb', line 6

def self.call(class_name)
  # TODO: how do we handle errors
  if class_name.present?
    callback = GetCallbackFrom.(class_name)
    return callback.send(:call)
  end
  DEFAULT
end