Class: GraphQL::Tracing::MonitorTrace::Monitor::Event

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(monitor, keyword, object) ⇒ Event

Returns a new instance of Event.



69
70
71
72
73
# File 'lib/graphql/tracing/monitor_trace.rb', line 69

def initialize(monitor, keyword, object)
  @monitor = monitor
  @keyword = keyword
  @object = object
end

Instance Attribute Details

#keywordObject (readonly)

Returns the value of attribute keyword.



75
76
77
# File 'lib/graphql/tracing/monitor_trace.rb', line 75

def keyword
  @keyword
end

#objectObject (readonly)

Returns the value of attribute object.



75
76
77
# File 'lib/graphql/tracing/monitor_trace.rb', line 75

def object
  @object
end

Instance Method Details

#finishObject



81
82
83
# File 'lib/graphql/tracing/monitor_trace.rb', line 81

def finish
  raise "Implement #{self.class}#finish to end this event (#{inspect})"
end

#startObject



77
78
79
# File 'lib/graphql/tracing/monitor_trace.rb', line 77

def start
  raise "Implement #{self.class}#start to begin a new event (#{inspect})"
end