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

Inherits:
DTK::Client::Execute::Command show all
Defined in:
lib/execute/command/rest_call.rb

Direct Known Subclasses

Post

Defined Under Namespace

Classes: Post

Instance Attribute Summary collapse

Attributes inherited from DTK::Client::Execute::Command

#input_hash, #result_var

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ RestCall

Returns a new instance of RestCall.



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

def initialize(hash)
  super
  @path = required(:path)
end

Instance Attribute Details

#pathObject (readonly)

TODO: allow calls like ‘converge’ which is a macro; we either directly support or have a sub class of RestCall called macro



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

def path
  @path
end