Class: Bixby::Model::Host
- Inherits:
-
Base
show all
- Defined in:
- lib/bixby-client/model/host.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#[], destroy, #initialize
Class Method Details
11
12
13
|
# File 'lib/bixby-client/model/host.rb', line 11
def self.find(id)
get("/hosts/#{id}")
end
|
7
8
9
|
# File 'lib/bixby-client/model/host.rb', line 7
def self.list
get("/hosts")
end
|
.update(id, data) ⇒ Object
15
16
17
|
# File 'lib/bixby-client/model/host.rb', line 15
def self.update(id, data)
put("/hosts/#{id}", data)
end
|
Instance Method Details
19
20
21
|
# File 'lib/bixby-client/model/host.rb', line 19
def save
end
|