Class: GraphQL::Tracing::NotificationsTrace::Adapter::Event Private
- Inherits:
 - 
      Object
      
        
- Object
 - GraphQL::Tracing::NotificationsTrace::Adapter::Event
 
 
- Defined in:
 - lib/graphql/tracing/notifications_trace.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.
Direct Known Subclasses
GraphQL::Tracing::NotificationsTrace::ActiveSupportNotificationsAdapter::Event, DryMonitorAdapter::Event
Instance Attribute Summary collapse
- 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  private
  
    
 - 
  
    
      #payload  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  private
  
    
 
Instance Method Summary collapse
- 
  
    
      #finish  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
 - 
  
    
      #initialize(name, payload)  ⇒ Event 
    
    
  
  
  
    constructor
  
  
  
  
  
  private
  
    
A new instance of Event.
 - 
  
    
      #start  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
 
Constructor Details
#initialize(name, payload) ⇒ Event
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 Event.
      23 24 25 26  | 
    
      # File 'lib/graphql/tracing/notifications_trace.rb', line 23 def initialize(name, payload) @name = name @payload = payload end  | 
  
Instance Attribute Details
#name ⇒ 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.
      28 29 30  | 
    
      # File 'lib/graphql/tracing/notifications_trace.rb', line 28 def name @name end  | 
  
#payload ⇒ 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.
      28 29 30  | 
    
      # File 'lib/graphql/tracing/notifications_trace.rb', line 28 def payload @payload end  | 
  
Instance Method Details
#finish ⇒ 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.
      34 35 36  | 
    
      # File 'lib/graphql/tracing/notifications_trace.rb', line 34 def finish raise "Implement #{self.class}#finish to end this event (#{inspect})" end  | 
  
#start ⇒ 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.
      30 31 32  | 
    
      # File 'lib/graphql/tracing/notifications_trace.rb', line 30 def start raise "Implement #{self.class}#start to begin a new event (#{inspect})" end  |