Class: RequestTracer::Trace::Annotation

Inherits:
Object
  • Object
show all
Defined in:
lib/request_tracer/trace.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, time = DateTime.now) ⇒ Annotation

Returns a new instance of Annotation.



9
10
11
12
# File 'lib/request_tracer/trace.rb', line 9

def initialize(name, time = DateTime.now)
  @name = name
  @time = time
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/request_tracer/trace.rb', line 8

def name
  @name
end

#timeObject (readonly)

Returns the value of attribute time.



8
9
10
# File 'lib/request_tracer/trace.rb', line 8

def time
  @time
end