Class: RunThisAsync::Callee::Encoder

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

Instance Method Summary collapse

Instance Method Details

#callObject



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

def call
  if callee.instance_of?(Class)
    return stringified_class
  elsif callee.is_a?(ActiveRecord::Base)
    return activerecord_pointer
  end

  callee
end