Class: Crowbar::Client::Request::Proposal::Edit
- Inherits:
-
Base
- Object
- Base
- Crowbar::Client::Request::Proposal::Edit
show all
- Defined in:
- lib/crowbar/client/request/proposal/edit.rb
Instance Attribute Summary
Attributes inherited from Base
#attrs, #request
Instance Method Summary
collapse
Methods inherited from Base
#headers, #initialize, #params, #process
Instance Method Details
#content ⇒ Object
24
25
26
27
28
|
# File 'lib/crowbar/client/request/proposal/edit.rb', line 24
def content
super.easy_merge!(
attrs.payload
)
end
|
#method ⇒ Object
30
31
32
|
# File 'lib/crowbar/client/request/proposal/edit.rb', line 30
def method
:post
end
|
#url ⇒ Object
34
35
36
37
38
39
40
41
42
|
# File 'lib/crowbar/client/request/proposal/edit.rb', line 34
def url
[
"crowbar",
attrs.barclamp,
"1.0",
"proposals",
attrs.proposal
].join("/")
end
|