Class: Jets::Lambda::Functions
- Inherits:
-
Object
- Object
- Jets::Lambda::Functions
- Includes:
- ExceptionReporting, Dsl
- Defined in:
- lib/jets/lambda/functions.rb
Direct Known Subclasses
Authorizer::Base, Controller::Base, Job::Base, Function, Rule::Base
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
:nodoc:.
-
.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.
- #logger ⇒ Object
Methods included from Dsl
Constructor Details
#initialize(event, context, meth) ⇒ Functions
Returns a new instance of Functions.
13 14 15 16 17 18 19 |
# 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 # store meth because it is useful to for identifying the which template # to use later. end |
Class Attribute Details
.abstract ⇒ Object (readonly) Also known as: abstract?
Returns the value of attribute abstract.
34 35 36 |
# File 'lib/jets/lambda/functions.rb', line 34 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
54 55 56 |
# File 'lib/jets/lambda/functions.rb', line 54 def _prefixes [] end |
.abstract! ⇒ Object
Define a controller as abstract. See internal_methods for more details.
50 51 52 |
# File 'lib/jets/lambda/functions.rb', line 50 def abstract! @abstract = true end |
.inherited(base) ⇒ Object
:nodoc:
39 40 41 42 43 44 45 46 |
# File 'lib/jets/lambda/functions.rb', line 39 def inherited(klass) # :nodoc: # Define the abstract ivar on subclasses so that we don't get # uninitialized ivar warnings unless klass.instance_variable_defined?(:@abstract) klass.instance_variable_set(:@abstract, false) end super end |
.output_keys ⇒ Object
Needed for depends_on. Got added due to stagger logic.
69 70 71 |
# File 'lib/jets/lambda/functions.rb', line 69 def output_keys [] end |
.subclasses ⇒ Object
Tracking subclasses because it helps with Lambda::Dsl#find_all_definitions
59 60 61 |
# File 'lib/jets/lambda/functions.rb', line 59 def subclasses @subclasses ||= [] end |
Instance Method Details
#_normalize_options(options) ⇒ Object
Pretty hacky since action_view/rendering.rb _normalize_options calls super
29 30 31 |
# File 'lib/jets/lambda/functions.rb', line 29 def () # :doc: end |