Class: Jets::Lambda::Functions
- Inherits:
-
Object
- Object
- Jets::Lambda::Functions
- Includes:
- Dsl
- Defined in:
- lib/jets/lambda/functions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#meth ⇒ Object
readonly
Returns the value of attribute meth.
Instance Method Summary collapse
-
#initialize(event, context, meth) ⇒ Functions
constructor
A new instance of Functions.
Methods included from Dsl
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
#context ⇒ Object (readonly)
Returns the value of attribute context.
10 11 12 |
# File 'lib/jets/lambda/functions.rb', line 10 def context @context end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
10 11 12 |
# File 'lib/jets/lambda/functions.rb', line 10 def event @event end |
#meth ⇒ Object (readonly)
Returns the value of attribute meth.
10 11 12 |
# File 'lib/jets/lambda/functions.rb', line 10 def meth @meth end |