class Crowbar::Client::Request::Proposal::Edit
Implementation for the proposal edit request
Public Instance Methods
content()
click to toggle source
Override the request content
@return [Hash] the content for the request
Calls superclass method
Crowbar::Client::Request::Base#content
# File lib/crowbar/client/request/proposal/edit.rb, line 32 def content super.easy_merge!( attrs.payload ).to_json end
method()
click to toggle source
HTTP method that gets used by the request
@return [Symbol] the method for the request
# File lib/crowbar/client/request/proposal/edit.rb, line 43 def method :post end
url()
click to toggle source
Path to the API endpoint for the request
@return [String] path to the API endpoint
# File lib/crowbar/client/request/proposal/edit.rb, line 52 def url [ "crowbar", attrs.barclamp, "1.0", "proposals", attrs.proposal ].join("/") end