Class: LogworkManager::Command
- Inherits:
-
Object
- Object
- LogworkManager::Command
- Defined in:
- lib/logwork_manager/command.rb
Overview
Abstract class which represents a worklog command
Instance Method Summary collapse
-
#initialize(arguments, workday_hours) ⇒ Command
constructor
A new instance of Command.
- #update_issues ⇒ Object abstract
Constructor Details
#initialize(arguments, workday_hours) ⇒ Command
Returns a new instance of Command.
22 23 24 25 26 27 28 |
# File 'lib/logwork_manager/command.rb', line 22 def initialize(arguments, workday_hours) return if arguments.nil? raise LogworkException::ArgumentError, "arguments should be a string" if arguments.class != String @args = arguments.strip.split @workday_hours = workday_hours end |
Instance Method Details
#update_issues ⇒ Object
This method is abstract.
31 32 33 |
# File 'lib/logwork_manager/command.rb', line 31 def update_issues(*) raise "Not implemented" end |