Class: RailsBand::DeprecationSubscriber::DeprecationEvent
- Inherits:
-
BaseEvent
- Object
- BaseEvent
- RailsBand::DeprecationSubscriber::DeprecationEvent
show all
- Defined in:
- lib/rails_band/deprecation_subscriber.rb
Overview
DeprecationEvent is a wrapper around a deprecation notification event.
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
Instance Method Details
#callstack ⇒ Object
12
13
14
|
# File 'lib/rails_band/deprecation_subscriber.rb', line 12
def callstack
@callstack ||= @event.payload.fetch(:callstack)
end
|
#deprecation_horizon ⇒ Object
20
21
22
|
# File 'lib/rails_band/deprecation_subscriber.rb', line 20
def deprecation_horizon
@deprecation_horizon ||= @event.payload.fetch(:deprecation_horizon)
end
|
#gem_name ⇒ Object
16
17
18
|
# File 'lib/rails_band/deprecation_subscriber.rb', line 16
def gem_name
@gem_name ||= @event.payload.fetch(:gem_name)
end
|
#message ⇒ Object
8
9
10
|
# File 'lib/rails_band/deprecation_subscriber.rb', line 8
def message
@message ||= @event.payload.fetch(:message)
end
|