Class: Toodledo::CommandLine::BaseCommand

Inherits:
CmdParse::Command
  • Object
show all
Defined in:
lib/toodledo/command_line/base_command.rb

Instance Method Summary collapse

Constructor Details

#initialize(client, name, subtasks = false) ⇒ BaseCommand

Returns a new instance of BaseCommand.



6
7
8
9
10
# File 'lib/toodledo/command_line/base_command.rb', line 6

def initialize(client, name, subtasks = false)
  super(name, subtasks)
  raise "Nil client!" if (client == nil)
  @client = client          
end

Instance Method Details

#clientObject



12
13
14
# File 'lib/toodledo/command_line/base_command.rb', line 12

def client
  return @client
end