Class: Wlog::ArchiveFinishedIssues
- Inherits:
-
Commandable
- Object
- Commandable
- Wlog::ArchiveFinishedIssues
- Defined in:
- lib/wlog/commands/archive_finished_issues.rb
Overview
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize ⇒ ArchiveFinishedIssues
constructor
A new instance of ArchiveFinishedIssues.
Constructor Details
#initialize ⇒ ArchiveFinishedIssues
Returns a new instance of ArchiveFinishedIssues.
10 11 12 13 |
# File 'lib/wlog/commands/archive_finished_issues.rb', line 10 def initialize @issues = Issue.where(:status => 2) @arch_command = ArchiveIssues.new(@issues) end |
Instance Method Details
#execute ⇒ Object
15 16 17 |
# File 'lib/wlog/commands/archive_finished_issues.rb', line 15 def execute @arch_command.execute end |