Class: Redmine::Commands::Issue
- Inherits:
-
Object
- Object
- Redmine::Commands::Issue
- Defined in:
- lib/redmine/commands/issue.rb,
lib/redmine/commands/issue/show.rb,
lib/redmine/commands/issue/activity.rb
Overview
Dispatcher for issue-related subcommands.
Defined Under Namespace
Instance Method Summary collapse
- #call(arguments) ⇒ Object
-
#initialize(issue_id:, redmine:) ⇒ Issue
constructor
A new instance of Issue.
Constructor Details
#initialize(issue_id:, redmine:) ⇒ Issue
Returns a new instance of Issue.
8 9 10 11 |
# File 'lib/redmine/commands/issue.rb', line 8 def initialize(issue_id:, redmine:) @issue_id = issue_id @redmine = redmine end |
Instance Method Details
#call(arguments) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/redmine/commands/issue.rb', line 13 def call(arguments) subcommand, *other_args = arguments command = self.class.const_get( subcommand.split('_').map(&:capitalize).join ) command.new(issue_id: @issue_id, redmine: @redmine).call(other_args) end |