Class: Jets::Lambda::Functions
- Inherits:
-
Object
- Object
- Jets::Lambda::Functions
- Includes:
- Dsl
- Defined in:
- lib/jets/lambda/functions.rb
Direct Known Subclasses
Authorizer::Base, Controller::Base, Job::Base, Function, Rule::Base
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.
Class Method Summary collapse
- .inherited(base) ⇒ Object
-
.output_keys ⇒ Object
Needed for depends_on.
-
.subclasses ⇒ Object
Tracking subclasses because it helps with Lambda::Dsl#find_all_tasks.
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 = HashWithIndifferentAccess.new(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 |
Class Method Details
.inherited(base) ⇒ Object
28 29 30 31 |
# File 'lib/jets/lambda/functions.rb', line 28 def inherited(base) super self.subclasses << base if base.name end |
.output_keys ⇒ Object
Needed for depends_on. Got added due to stagger logic.
34 35 36 |
# File 'lib/jets/lambda/functions.rb', line 34 def output_keys [] end |
.subclasses ⇒ Object
Tracking subclasses because it helps with Lambda::Dsl#find_all_tasks
24 25 26 |
# File 'lib/jets/lambda/functions.rb', line 24 def subclasses @subclasses ||= [] end |