Sha256: bb04244f85b0b138b8de5d8bb7d8b1b5b84f5d11921ef6f456b854712c3000ec

Contents?: true

Size: 548 Bytes

Versions: 15

Compression:

Stored size: 548 Bytes

Contents

require 'json'

# Base public methods get turned into Lambda functions.
#
# Jets::Rule::Base < Jets::Lambda::Functions
# Both Jets::Rule::Base and Jets::Lambda::Functions have Dsl modules included.
# So the Jets::Rule::Dsl overrides some of the Jets::Lambda::Functions behavior.
module Jets::Rule
  class Base < Jets::Lambda::Functions
    include Dsl
    prepend Jets::ExceptionReporting::Process

    class << self
      def process(event, context, meth)
        job = new(event, context, meth)
        job.send(meth)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jets-5.0.13 lib/jets/rule/base.rb
jets-5.0.12 lib/jets/rule/base.rb
jets-5.0.11 lib/jets/rule/base.rb
jets-5.0.10 lib/jets/rule/base.rb
jets-5.0.9 lib/jets/rule/base.rb
jets-5.0.8 lib/jets/rule/base.rb
jets-5.0.7 lib/jets/rule/base.rb
jets-5.0.6 lib/jets/rule/base.rb
jets-5.0.5 lib/jets/rule/base.rb
jets-5.0.4 lib/jets/rule/base.rb
jets-5.0.3 lib/jets/rule/base.rb
jets-5.0.2 lib/jets/rule/base.rb
jets-5.0.1 lib/jets/rule/base.rb
jets-5.0.0 lib/jets/rule/base.rb
jets-5.0.0.beta1 lib/jets/rule/base.rb