Class: QuickBase::CommandLineClient::Command
- Inherits:
-
Object
- Object
- QuickBase::CommandLineClient::Command
- Defined in:
- lib/QuickBaseCommandLineClient.rb
Overview
Information needed to display and run a command
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#prerequisite ⇒ Object
readonly
Returns the value of attribute prerequisite.
-
#prompt ⇒ Object
readonly
Returns the value of attribute prompt.
Instance Method Summary collapse
-
#initialize(name, desc, prerequisite, args, code, prompt = nil) ⇒ Command
constructor
A new instance of Command.
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
#args ⇒ Object (readonly)
Returns the value of attribute args.
42 43 44 |
# File 'lib/QuickBaseCommandLineClient.rb', line 42 def args @args end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
42 43 44 |
# File 'lib/QuickBaseCommandLineClient.rb', line 42 def code @code end |
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
42 43 44 |
# File 'lib/QuickBaseCommandLineClient.rb', line 42 def desc @desc end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
42 43 44 |
# File 'lib/QuickBaseCommandLineClient.rb', line 42 def name @name end |
#prerequisite ⇒ Object (readonly)
Returns the value of attribute prerequisite.
42 43 44 |
# File 'lib/QuickBaseCommandLineClient.rb', line 42 def prerequisite @prerequisite end |
#prompt ⇒ Object (readonly)
Returns the value of attribute prompt.
42 43 44 |
# File 'lib/QuickBaseCommandLineClient.rb', line 42 def prompt @prompt end |