Class: Wlog::ArchiveFinishedIssues

Inherits:
Commandable show all
Defined in:
lib/wlog/commands/archive_finished_issues.rb

Overview

Author:

  • Simon Symeonidis

Instance Method Summary collapse

Constructor Details

#initializeArchiveFinishedIssues

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

#executeObject



15
16
17
# File 'lib/wlog/commands/archive_finished_issues.rb', line 15

def execute
  @arch_command.execute
end