Sha256: 9d1aea1190731e0892f4d85e28323666b0b4b228286204c1f0e2b1b64a187689

Contents?: true

Size: 687 Bytes

Versions: 52

Compression:

Stored size: 687 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
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
jets-1.0.5 lib/jets/lambda/functions.rb
jets-1.0.4 lib/jets/lambda/functions.rb
jets-1.0.3 lib/jets/lambda/functions.rb
jets-1.0.2 lib/jets/lambda/functions.rb
jets-1.0.1 lib/jets/lambda/functions.rb
jets-1.0.0 lib/jets/lambda/functions.rb
jets-0.10.4 lib/jets/lambda/functions.rb
jets-0.10.3 lib/jets/lambda/functions.rb
jets-0.10.2 lib/jets/lambda/functions.rb
jets-0.10.1 lib/jets/lambda/functions.rb
jets-0.10.0 lib/jets/lambda/functions.rb
jets-0.9.2 lib/jets/lambda/functions.rb
jets-0.9.1 lib/jets/lambda/functions.rb
jets-0.9.0 lib/jets/lambda/functions.rb
jets-0.8.18 lib/jets/lambda/functions.rb
jets-0.8.17 lib/jets/lambda/functions.rb
jets-0.8.15 lib/jets/lambda/functions.rb
jets-0.8.14 lib/jets/lambda/functions.rb
jets-0.8.13 lib/jets/lambda/functions.rb
jets-0.8.12 lib/jets/lambda/functions.rb