class Logtail::Events::TemplateRender

@private

Attributes

duration_ms[R]
message[R]
name[R]

Public Class Methods

new(attributes) click to toggle source
# File lib/logtail/events/template_render.rb, line 9
def initialize(attributes)
  @name = attributes[:name]
  @duration_ms = attributes[:duration_ms]
  @message = attributes[:message]
end

Public Instance Methods

to_hash() click to toggle source
# File lib/logtail/events/template_render.rb, line 15
def to_hash
  {
    template_rendered: Util::NonNilHashBuilder.build do |h|
      h.add(:name, name)
      h.add(:duration_ms, duration_ms)
    end
  }
end