Class: Commands::List
- Inherits:
-
Object
- Object
- Commands::List
- Defined in:
- lib/commands/list.rb
Overview
Command to get NotionTask version
Instance Method Summary collapse
-
#initialize(args, options) ⇒ List
constructor
A new instance of List.
- #run ⇒ Object
Constructor Details
#initialize(args, options) ⇒ List
Returns a new instance of List.
10 11 12 13 14 15 |
# File 'lib/commands/list.rb', line 10 def initialize(args, ) @args = args = @api = NotionAPI.new run end |
Instance Method Details
#run ⇒ Object
17 18 19 |
# File 'lib/commands/list.rb', line 17 def run puts @api.get_tasks end |