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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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