Module: Hanami::Lambda::Function::ClassMethods Private
- Defined in:
- lib/hanami/lambda/function.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#event_type ⇒ Class
private
Return the class which define the event type.
-
#type(klass) ⇒ Object
private
Define the event type.
Instance Method Details
#event_type ⇒ Class
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return the class which define the event type
32 33 34 |
# File 'lib/hanami/lambda/function.rb', line 32 def event_type @event_type || Event end |
#type(klass) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Define the event type
42 43 44 |
# File 'lib/hanami/lambda/function.rb', line 42 def type(klass) @event_type = klass end |