Class: Tlog::Entity::Active_Log
- Inherits:
-
Object
- Object
- Tlog::Entity::Active_Log
- Defined in:
- lib/tlog/entity/active_log.rb
Overview
Helper class for printing out active time logs
Instance Attribute Summary collapse
-
#current ⇒ Object
Returns the value of attribute current.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Active_Log
constructor
A new instance of Active_Log.
Constructor Details
#initialize(name) ⇒ Active_Log
Returns a new instance of Active_Log.
7 8 9 10 |
# File 'lib/tlog/entity/active_log.rb', line 7 def initialize(name) @name = name @current = false end |
Instance Attribute Details
#current ⇒ Object
Returns the value of attribute current.
5 6 7 |
# File 'lib/tlog/entity/active_log.rb', line 5 def current @current end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/tlog/entity/active_log.rb', line 4 def name @name end |