Class: Tlog::Command::Points

Inherits:
Tlog::Command show all
Defined in:
lib/tlog/command/points.rb

Instance Attribute Summary

Attributes inherited from Tlog::Command

#date_time_format, #seconds_format, #storage

Instance Method Summary collapse

Instance Method Details

#descriptionObject



8
9
10
# File 'lib/tlog/command/points.rb', line 8

def description
	"changes the point value of the checked-out time log"
end

#execute(input, output) ⇒ Object



12
13
14
15
# File 'lib/tlog/command/points.rb', line 12

def execute(input, output)
	new_points_value = input.args[0]
	change_state(new_points_value)
end

#nameObject



4
5
6
# File 'lib/tlog/command/points.rb', line 4

def name 
	"points"
end

#options(parser, options) ⇒ Object



17
18
19
# File 'lib/tlog/command/points.rb', line 17

def options(parser, options)
	parser.banner = "usage: tlog points <new_points_value>"
end