Class: RunThisAsync::Callee::Decoder

Inherits:
Object
  • Object
show all
Defined in:
lib/run_this_async/callee/decoder.rb

Instance Method Summary collapse

Instance Method Details

#callObject



6
7
8
9
10
11
12
13
14
# File 'lib/run_this_async/callee/decoder.rb', line 6

def call
  if callee.instance_of?(String)
    return class_from_string
  elsif callee.instance_of?(RunThisAsync::ActiveRecordPointer)
    return activerecord_model
  end

  callee
end