Class: Tlog::Entity::Active_Log

Inherits:
Object
  • Object
show all
Defined in:
lib/tlog/entity/active_log.rb

Overview

Helper class for printing out active time logs

Instance Attribute Summary collapse

Instance Method Summary collapse

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_outObject

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

#currentObject

Returns the value of attribute current.



5
6
7
# File 'lib/tlog/entity/active_log.rb', line 5

def current
  @current
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/tlog/entity/active_log.rb', line 4

def name
  @name
end