Class: RailsBand::ActionMailer::Event::Process

Inherits:
BaseEvent
  • Object
show all
Defined in:
lib/rails_band/action_mailer/event/process.rb

Overview

A wrapper for the event that is passed to process.action_mailer.

Instance Attribute Summary

Attributes inherited from BaseEvent

#allocations, #cpu_time, #duration, #end, #idle_time, #name, #time, #transaction_id

Instance Method Summary collapse

Methods inherited from BaseEvent

#initialize, #slice, #to_h

Constructor Details

This class inherits a constructor from RailsBand::BaseEvent

Instance Method Details

#action ⇒ Object



12
13
14
# File 'lib/rails_band/action_mailer/event/process.rb', line 12

def action
  @action ||= @event.payload.fetch(:action)
end

#args ⇒ Object



16
17
18
# File 'lib/rails_band/action_mailer/event/process.rb', line 16

def args
  @args ||= @event.payload.fetch(:args)
end

#mailer ⇒ Object



8
9
10
# File 'lib/rails_band/action_mailer/event/process.rb', line 8

def mailer
  @mailer ||= @event.payload.fetch(:mailer)
end