Skip to Content Skip to Search

class ActiveSupport::EventReporter::Encoders::Base

Base encoder class that other encoders can inherit from.

Public class methods

Encodes an event hash into a serialized format.

@param event [Hash] The event hash containing name, payload, tags, context, timestamp, and source_location @return [String] The encoded event data

Source code GitHub
# File activesupport/lib/active_support/event_reporter/encoders.rb, line 28
def self.encode(event)
  raise NotImplementedError, "Subclasses must implement #encode"
end

Definition files