Class: GraphQL::Tracing::NotificationsTrace::Adapter::Event Private

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/tracing/notifications_trace.rb

Overview

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.

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

API:

  • private



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

#nameObject (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.

API:

  • private



28
29
30
# File 'lib/graphql/tracing/notifications_trace.rb', line 28

def name
  @name
end

#payloadObject (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.

API:

  • private



28
29
30
# File 'lib/graphql/tracing/notifications_trace.rb', line 28

def payload
  @payload
end

Instance Method Details

#finishObject

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.

API:

  • private



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

#startObject

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.

API:

  • private



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