Class: Markdo::OverdueCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/markdo/overdue_command.rb

Overview

TODO: More testing of this logic. As of 2016-01-23, I was building this project as a proof of concept.

Instance Method Summary collapse

Constructor Details

#initializeOverdueCommand

Returns a new instance of OverdueCommand.



8
9
10
11
# File 'lib/markdo/overdue_command.rb', line 8

def initialize(*)
  @date = Date.today
  super
end

Instance Method Details

#runObject



13
14
15
16
17
18
19
# File 'lib/markdo/overdue_command.rb', line 13

def run
  query_command = QueryCommand.new(@stdout, @stderr, @env)

  all_queries.each do |query|
    query_command.run(query)
  end
end