Sha256: 7c2a90946233701760f49399982fd1b603305992e09e5edc91c6561d460bce2f
Contents?: true
Size: 762 Bytes
Versions: 19
Compression:
Stored size: 762 Bytes
Contents
module Jets::Lambda class Function < Functions # Override and change the signature so we do not have to provide info at # initialization. So: # # hello_function = HelloFunction.new # hello_function.lambda_handler(event, context) # # Normally controller and job functions initialize like this: # # controller = PostController.new(event, context, "handler_handler") def initialize end def self.handler handler_definition.meth end def self.handler_definition definitions.first end # Used by main_processor.rb. Same interface as controllers and jobs. def self.process(event, context, meth) function = new function.send(handler, event, context) end end end
Version data entries
19 entries across 19 versions & 1 rubygems