Class: DTK::Client::Execute::Command::RestCall
- Inherits:
-
DTK::Client::Execute::Command
- Object
- DTK::Client::Execute::Command
- DTK::Client::Execute::Command::RestCall
- Defined in:
- lib/execute/command/rest_call.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Post
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
TODO: allow calls like ‘converge’ which is a macro; we either directly support or have a sub class of RestCall called macro.
Attributes inherited from DTK::Client::Execute::Command
Instance Method Summary collapse
-
#initialize(hash) ⇒ RestCall
constructor
A new instance of RestCall.
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
#path ⇒ Object (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 |