Class: MiniProfiler::Timing
- Inherits:
-
Object
- Object
- MiniProfiler::Timing
- Defined in:
- lib/mini_profiler/timing.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize ⇒ Timing
constructor
A new instance of Timing.
Constructor Details
#initialize ⇒ Timing
Returns a new instance of Timing.
8 9 10 |
# File 'lib/mini_profiler/timing.rb', line 8 def initialize @id = UUIDTools::UUID.random_create.to_s end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
5 6 7 |
# File 'lib/mini_profiler/timing.rb', line 5 def duration @duration end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/mini_profiler/timing.rb', line 6 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/mini_profiler/timing.rb', line 5 def name @name end |