Class: Fog::Compute::Ecloud::Monitors
- Inherits:
-
Ecloud::Collection
- Object
- Fog::Collection
- Ecloud::Collection
- Fog::Compute::Ecloud::Monitors
- Defined in:
- lib/fog/ecloud/models/compute/monitors.rb
Instance Method Summary collapse
Methods inherited from Ecloud::Collection
Instance Method Details
#all ⇒ Object
11 12 13 14 |
# File 'lib/fog/ecloud/models/compute/monitors.rb', line 11 def all data = service.get_monitors(href).body load(data) end |
#from_data(data) ⇒ Object
24 25 26 |
# File 'lib/fog/ecloud/models/compute/monitors.rb', line 24 def from_data(data) new(data) end |
#get(uri) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/fog/ecloud/models/compute/monitors.rb', line 16 def get(uri) if data = service.get_monitor(uri) new(data.body) end rescue Fog::Errors::NotFound nil end |