Class: Nuke::Client::Command
- Inherits:
-
Object
- Object
- Nuke::Client::Command
- Defined in:
- lib/nuke/client/command.rb
Instance Method Summary collapse
- #destroy ⇒ Object
-
#initialize(url) ⇒ Command
constructor
A new instance of Command.
- #push(features) ⇒ Object
Constructor Details
#initialize(url) ⇒ Command
Returns a new instance of Command.
7 8 9 |
# File 'lib/nuke/client/command.rb', line 7 def initialize url @url = url end |
Instance Method Details
#destroy ⇒ Object
15 16 17 |
# File 'lib/nuke/client/command.rb', line 15 def destroy RestClient.delete url end |
#push(features) ⇒ Object
11 12 13 |
# File 'lib/nuke/client/command.rb', line 11 def push features RestClient.put url("/features/"), jsonify(features), json_headers end |