Class: Commands::List

Inherits:
Object
  • Object
show all
Defined in:
lib/commands/list.rb

Overview

Command to get NotionTask version

Instance Method Summary collapse

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, options)
  @args = args
  @options = options
  @api = NotionAPI.new
  run
end

Instance Method Details

#runObject



17
18
19
# File 'lib/commands/list.rb', line 17

def run
  puts @api.get_tasks
end