Class: RequestTracer::Trace::Annotation
- Inherits:
-
Object
- Object
- RequestTracer::Trace::Annotation
- Defined in:
- lib/request_tracer/trace.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(name, time = DateTime.now) ⇒ Annotation
constructor
A new instance of Annotation.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/request_tracer/trace.rb', line 8 def name @name end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
8 9 10 |
# File 'lib/request_tracer/trace.rb', line 8 def time @time end |