Class: MiniProfiler::Timing

Inherits:
Object
  • Object
show all
Defined in:
lib/mini_profiler/timing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTiming

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

#durationObject

Returns the value of attribute duration.



5
6
7
# File 'lib/mini_profiler/timing.rb', line 5

def duration
  @duration
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/mini_profiler/timing.rb', line 6

def id
  @id
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/mini_profiler/timing.rb', line 5

def name
  @name
end