Class: DTK::Client::Execute::Command
- Inherits:
-
Object
- Object
- DTK::Client::Execute::Command
- Defined in:
- lib/execute/command.rb,
lib/execute/command/api_call.rb,
lib/execute/command/rest_call.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#input_hash ⇒ Object
readonly
Returns the value of attribute input_hash.
-
#result_var ⇒ Object
readonly
Returns the value of attribute result_var.
Instance Method Summary collapse
-
#initialize(input_hash) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(input_hash) ⇒ Command
Returns a new instance of Command.
24 25 26 27 |
# File 'lib/execute/command.rb', line 24 def initialize(input_hash) @input_hash = input_hash @result_var = optional?(:result_var) end |
Instance Attribute Details
#input_hash ⇒ Object (readonly)
Returns the value of attribute input_hash.
23 24 25 |
# File 'lib/execute/command.rb', line 23 def input_hash @input_hash end |
#result_var ⇒ Object (readonly)
Returns the value of attribute result_var.
23 24 25 |
# File 'lib/execute/command.rb', line 23 def result_var @result_var end |