Class: Crowbar::Client::Request::Node::Action

Inherits:
Base
  • Object
show all
Defined in:
lib/crowbar/client/request/node/action.rb

Instance Attribute Summary

Attributes inherited from Base

#attrs, #request

Instance Method Summary collapse

Methods inherited from Base

#content, #headers, #initialize, #params, #process

Constructor Details

This class inherits a constructor from Crowbar::Client::Request::Base

Instance Method Details

#methodObject



22
23
24
# File 'lib/crowbar/client/request/node/action.rb', line 22

def method
  :post
end

#urlObject



26
27
28
29
30
31
32
33
34
# File 'lib/crowbar/client/request/node/action.rb', line 26

def url
  [
    "crowbar",
    "machines",
    "1.0",
    attrs.action,
    attrs.name
  ].join("/")
end