Sha256: 21217123480bf00b4ba51fd8f0530fc8a2015933bc4228e0a9fe6e205aad9663
Contents?: true
Size: 480 Bytes
Versions: 30
Compression:
Stored size: 480 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 def to_json Oj.dump(to_h) end end end
Version data entries
30 entries across 30 versions & 1 rubygems