Class: QuickBase::CommandLineClient::Command

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

Overview

Information needed to display and run a command

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, desc, prerequisite, args, code, prompt = nil) ⇒ Command

Returns a new instance of Command.



43
44
45
# File 'lib/QuickBaseCommandLineClient.rb', line 43

def initialize( name, desc, prerequisite, args, code, prompt = nil )
   @name, @desc, @prerequisite, @args, @code, @prompt = name, desc, prerequisite, args, code, prompt
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



42
43
44
# File 'lib/QuickBaseCommandLineClient.rb', line 42

def args
  @args
end

#codeObject (readonly)

Returns the value of attribute code.



42
43
44
# File 'lib/QuickBaseCommandLineClient.rb', line 42

def code
  @code
end

#descObject (readonly)

Returns the value of attribute desc.



42
43
44
# File 'lib/QuickBaseCommandLineClient.rb', line 42

def desc
  @desc
end

#nameObject (readonly)

Returns the value of attribute name.



42
43
44
# File 'lib/QuickBaseCommandLineClient.rb', line 42

def name
  @name
end

#prerequisiteObject (readonly)

Returns the value of attribute prerequisite.



42
43
44
# File 'lib/QuickBaseCommandLineClient.rb', line 42

def prerequisite
  @prerequisite
end

#promptObject (readonly)

Returns the value of attribute prompt.



42
43
44
# File 'lib/QuickBaseCommandLineClient.rb', line 42

def prompt
  @prompt
end