Class: Jets::Lambda::Functions
- Inherits:
-
Object
- Object
- Jets::Lambda::Functions
- Extended by:
- Util::Logging
- Includes:
- ExceptionReporting, Dsl, Util::Logging
- Defined in:
- lib/jets/lambda/functions.rb
Direct Known Subclasses
Class Attribute Summary collapse
-
.abstract ⇒ Object
(also: abstract?)
readonly
Returns the value of attribute abstract.
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
- ._prefixes ⇒ Object
-
.abstract! ⇒ Object
Define a controller as abstract.
- .inherited(base) ⇒ Object
-
.output_keys ⇒ Object
Needed for depends_on.
-
.subclasses ⇒ Object
Tracking subclasses because it helps with Lambda::Dsl#find_all_definitions.
Instance Method Summary collapse
-
#_normalize_options(options) ⇒ Object
Pretty hacky since action_view/rendering.rb _normalize_options calls super.
-
#initialize(event, context, meth) ⇒ Functions
constructor
A new instance of Functions.
Methods included from Util::Logging
Methods included from Dsl
Constructor Details
#initialize(event, context, meth) ⇒ Functions
Returns a new instance of Functions.
13 14 15 16 17 |
# File 'lib/jets/lambda/functions.rb', line 13 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 # useful to identify which template to use later. end |
Class Attribute Details
.abstract ⇒ Object (readonly) Also known as: abstract?
Returns the value of attribute abstract.
30 31 32 |
# File 'lib/jets/lambda/functions.rb', line 30 def abstract @abstract end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
12 13 14 |
# File 'lib/jets/lambda/functions.rb', line 12 def context @context end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
12 13 14 |
# File 'lib/jets/lambda/functions.rb', line 12 def event @event end |
#meth ⇒ Object (readonly)
Returns the value of attribute meth.
12 13 14 |
# File 'lib/jets/lambda/functions.rb', line 12 def meth @meth end |
Class Method Details
._prefixes ⇒ Object
44 45 46 |
# File 'lib/jets/lambda/functions.rb', line 44 def _prefixes [] end |
.abstract! ⇒ Object
Define a controller as abstract. See internal_methods for more details.
40 41 42 |
# File 'lib/jets/lambda/functions.rb', line 40 def abstract! @abstract = true end |
.inherited(base) ⇒ Object
34 35 36 37 |
# File 'lib/jets/lambda/functions.rb', line 34 def inherited(base) super subclasses << base if base.name end |
.output_keys ⇒ Object
Needed for depends_on. Got added due to stagger logic.
54 55 56 |
# File 'lib/jets/lambda/functions.rb', line 54 def output_keys [] end |
.subclasses ⇒ Object
Tracking subclasses because it helps with Lambda::Dsl#find_all_definitions
49 50 51 |
# File 'lib/jets/lambda/functions.rb', line 49 def subclasses @subclasses ||= [] end |
Instance Method Details
#_normalize_options(options) ⇒ Object
Pretty hacky since action_view/rendering.rb _normalize_options calls super
23 24 25 |
# File 'lib/jets/lambda/functions.rb', line 23 def () # :doc: end |