Class: Capistrano::Measure::Timer::Event
- Inherits:
-
Struct
- Object
- Struct
- Capistrano::Measure::Timer::Event
- Defined in:
- lib/capistrano/measure/timer.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#elapsed_time ⇒ Object
Returns the value of attribute elapsed_time.
-
#indent ⇒ Object
Returns the value of attribute indent.
-
#name ⇒ Object
Returns the value of attribute name.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action
6 7 8 |
# File 'lib/capistrano/measure/timer.rb', line 6 def action @action end |
#elapsed_time ⇒ Object
Returns the value of attribute elapsed_time
6 7 8 |
# File 'lib/capistrano/measure/timer.rb', line 6 def elapsed_time @elapsed_time end |
#indent ⇒ Object
Returns the value of attribute indent
6 7 8 |
# File 'lib/capistrano/measure/timer.rb', line 6 def indent @indent end |
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/capistrano/measure/timer.rb', line 6 def name @name end |
#time ⇒ Object
Returns the value of attribute time
6 7 8 |
# File 'lib/capistrano/measure/timer.rb', line 6 def time @time end |
Instance Method Details
#eq?(event) ⇒ Boolean
11 12 13 |
# File 'lib/capistrano/measure/timer.rb', line 11 def eq?(event) id == event.id end |
#id ⇒ Object
7 8 9 |
# File 'lib/capistrano/measure/timer.rb', line 7 def id "#{name}_#{indent}".freeze end |
#start? ⇒ Boolean
15 16 17 |
# File 'lib/capistrano/measure/timer.rb', line 15 def start? action == :start end |