Class: Crowbar::Client::Request::Interface::Disable
- Inherits:
-
Base
- Object
- Base
- Crowbar::Client::Request::Interface::Disable
show all
- Defined in:
- lib/crowbar/client/request/interface/disable.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
29
|
# File 'lib/crowbar/client/request/interface/disable.rb', line 24
def content
super.easy_merge!(
name: attrs.node,
network: attrs.network
)
end
|
#method ⇒ Object
31
32
33
|
# File 'lib/crowbar/client/request/interface/disable.rb', line 31
def method
:post
end
|
#url ⇒ Object
35
36
37
38
39
40
41
42
43
|
# File 'lib/crowbar/client/request/interface/disable.rb', line 35
def url
[
"crowbar",
"network",
"1.0",
"disable_interface",
attrs.prop
].join("/")
end
|