Sha256: 245224f06f6f32a478c9587bc6651bafbfe8e473efce4fed3294dbfd1056cd01
Contents?: true
Size: 945 Bytes
Versions: 126
Compression:
Stored size: 945 Bytes
Contents
require 'json' # Jets::Lambda::Functions represents a collection of Lambda functions. # # Jets::Lambda::Functions is the superclass of: # Jets::Controller::Base # Jets::Job::Base module Jets::Lambda class Functions attr_reader :event, :context, :meth 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 include Dsl # At the end so methods like event, context and method # do not trigger method_added class << self # Tracking subclasses because it helps with Lambda::Dsl#find_all_tasks def subclasses @subclasses ||= [] end def inherited(base) super self.subclasses << base if base.name end end end end
Version data entries
126 entries across 126 versions & 3 rubygems