Method: Jets::Lambda::Function#initialize
- Defined in:
- lib/jets/lambda/function.rb
#initialize ⇒ Function
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")
12 13 |
# File 'lib/jets/lambda/function.rb', line 12 def initialize end |