Class: LogworkManager::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/logwork_manager/command.rb

Overview

Abstract class which represents a worklog command

Direct Known Subclasses

Duration, Insert, Move, Remove

Instance Method Summary collapse

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_issuesObject

This method is abstract.


31
32
33
# File 'lib/logwork_manager/command.rb', line 31

def update_issues(*)
  raise "Not implemented"
end