Module: LambdaConsole

Extended by:
LambdaConsole
Included in:
LambdaConsole
Defined in:
lib/lambda-console-ruby.rb,
lib/lambda-console-ruby/run.rb,
lib/lambda-console-ruby/version.rb,
lib/lambda-console-ruby/interact.rb,
lib/lambda-console-ruby/namespace.rb

Defined Under Namespace

Classes: Interact, Run

Constant Summary collapse

VERSION =
"1.0.0"
NAMESPACE =
"X_LAMBDA_CONSOLE"

Instance Method Summary collapse

Instance Method Details

#handle(event) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/lambda-console-ruby.rb', line 11

def handle(event)
  if Run.handle?(event)
    Run.handle(event)
  elsif Interact.handle?(event)
    Interact.handle(event)
  end    
end

#handle?(event) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/lambda-console-ruby.rb', line 7

def handle?(event)
  Run.handle?(event) || LambdaConsole::Interact.handle?(event)
end