Class: Appsignal::EventFormatter::ActionView::RenderFormatter Private
- Defined in:
 - lib/appsignal/event_formatter/action_view/render_formatter.rb
 
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- BLANK =
          
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
 "".freeze
Instance Attribute Summary collapse
- #root_path ⇒ Object readonly private
 
Instance Method Summary collapse
- #format(payload) ⇒ Object private
 - 
  
    
      #initialize  ⇒ RenderFormatter 
    
    
  
  
  
    constructor
  
  
  
  
  
  private
  
    
A new instance of RenderFormatter.
 
Constructor Details
#initialize ⇒ RenderFormatter
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of RenderFormatter.
      12 13 14  | 
    
      # File 'lib/appsignal/event_formatter/action_view/render_formatter.rb', line 12 def initialize @root_path = "#{Rails.root}/".freeze end  | 
  
Instance Attribute Details
#root_path ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
      10 11 12  | 
    
      # File 'lib/appsignal/event_formatter/action_view/render_formatter.rb', line 10 def root_path @root_path end  | 
  
Instance Method Details
#format(payload) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
      16 17 18 19  | 
    
      # File 'lib/appsignal/event_formatter/action_view/render_formatter.rb', line 16 def format(payload) return nil unless payload[:identifier] [payload[:identifier].sub(root_path, BLANK), nil] end  |