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
-
#checked_out ⇒ Object
Returns the value of attribute checked_out.
-
#current ⇒ Object
Returns the value of attribute current.
-
#name ⇒ Object
readonly
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.
8 9 10 11 12 |
# File 'lib/tlog/entity/active_log.rb', line 8 def initialize(name) @name = name @current = false @checked_out = false end |
Instance Attribute Details
#checked_out ⇒ Object
Returns the value of attribute checked_out.
6 7 8 |
# File 'lib/tlog/entity/active_log.rb', line 6 def checked_out @checked_out end |
#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 (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/tlog/entity/active_log.rb', line 4 def name @name end |