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.



7
8
9
10
# File 'lib/tlog/entity/active_log.rb', line 7

def initialize(name)
	@name = name
	@current = false
end

Instance Attribute Details

#currentObject

Returns the value of attribute current.



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

def current
  @current
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end