Class: DTK::Client::Execute::Command::RestCall::Post
- Inherits:
-
DTK::Client::Execute::Command::RestCall
- Object
- DTK::Client::Execute::Command
- DTK::Client::Execute::Command::RestCall
- DTK::Client::Execute::Command::RestCall::Post
- Defined in:
- lib/execute/command/rest_call.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Attributes inherited from DTK::Client::Execute::Command::RestCall
Attributes inherited from DTK::Client::Execute::Command
Instance Method Summary collapse
-
#initialize(hash) ⇒ Post
constructor
A new instance of Post.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
29 30 31 |
# File 'lib/execute/command/rest_call.rb', line 29 def body @body end |