Sha256: 0b3bfab1ee39c217a8903e3b394b13ff5dbfae1408e4784dab43867dc6b55d48

Contents?: true

Size: 436 Bytes

Versions: 5

Compression:

Stored size: 436 Bytes

Contents

module FaaStRuby
  class Event
    attr_accessor :body, :query_params, :headers, :context
    def initialize(body:, query_params:, headers:, context:)
      @body = body
      @query_params = query_params
      @headers = headers
      @context = context
    end
    def to_h
      {
        "body" => @body,
        "query_params" => @query_params,
        "headers" => @headers,
        "context" => @context
      }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
faastruby-0.4.18 lib/faastruby/server/event.rb
faastruby-0.4.17 lib/faastruby/server/event.rb
faastruby-0.4.16 lib/faastruby/server/event.rb
faastruby-0.4.15 lib/faastruby/server/event.rb
faastruby-0.4.14 lib/faastruby/server/event.rb