Class: Jets::Lambda::Functions

Inherits:
Object
  • Object
show all
Includes:
Dsl
Defined in:
lib/jets/lambda/functions.rb

Direct Known Subclasses

Controller::Base, Job::Base, Function, Rule::Base

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Dsl

#lambda_functions

Constructor Details

#initialize(event, context, meth) ⇒ Functions

Returns a new instance of Functions.



11
12
13
14
15
16
17
# File 'lib/jets/lambda/functions.rb', line 11

def initialize(event, context, meth)
  @event = event # Hash, JSON.parse(event) ran BaseProcessor
  @context = context # Hash. JSON.parse(context) ran in BaseProcessor
  @meth = meth
  # store meth because it is useful to for identifying the which template
  # to use later.
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



10
11
12
# File 'lib/jets/lambda/functions.rb', line 10

def context
  @context
end

#eventObject (readonly)

Returns the value of attribute event.



10
11
12
# File 'lib/jets/lambda/functions.rb', line 10

def event
  @event
end

#methObject (readonly)

Returns the value of attribute meth.



10
11
12
# File 'lib/jets/lambda/functions.rb', line 10

def meth
  @meth
end