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