Class: DTK::Client::Execute::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/execute/command.rb,
lib/execute/command/api_call.rb,
lib/execute/command/rest_call.rb

Direct Known Subclasses

APICall, RestCall

Defined Under Namespace

Classes: APICall, RestCall

Instance Attribute Summary collapse

Instance Method Summary collapse

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_hashObject (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_varObject (readonly)

Returns the value of attribute result_var.



23
24
25
# File 'lib/execute/command.rb', line 23

def result_var
  @result_var
end