Class: PivotalIntegration::Command::Mark
- Defined in:
- lib/pivotal-integration/command/mark.rb
Overview
The class that encapsulates assigning current Pivotal Tracker Story to a user
Constant Summary collapse
- STATES =
%w(unstarted started finished delivered rejected accepted)
Instance Method Summary collapse
-
#run(*arguments) ⇒ void
Assigns story to user.
Methods inherited from Base
Constructor Details
This class inherits a constructor from PivotalIntegration::Command::Base
Instance Method Details
#run(*arguments) ⇒ void
This method returns an undefined value.
Assigns story to user.
27 28 29 30 31 32 |
# File 'lib/pivotal-integration/command/mark.rb', line 27 def run(*arguments) state = arguments.first state = choose_state if state.nil? or !STATES.include?(state) PivotalIntegration::Util::Story.mark(story, state) end |