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

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

Instance Attribute Summary collapse

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

#path

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

#input_hash, #result_var

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Post

Returns a new instance of Post.



30
31
32
33
# File 'lib/execute/command/rest_call.rb', line 30

def initialize(hash)
  super
  @body = optional?(:body)||{}
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



29
30
31
# File 'lib/execute/command/rest_call.rb', line 29

def body
  @body
end