Sha256: f0519860f74bf0b4549fe6997e849bdf63a26d6a84bcd74b904b0b946b41d08a
Contents?: true
Size: 571 Bytes
Versions: 13
Compression:
Stored size: 571 Bytes
Contents
require 'fog/ecloud/models/compute/monitor' module Fog module Compute class Ecloud class Monitors < Fog::Ecloud::Collection identity :href model Fog::Compute::Ecloud::Monitor def all data = connection.get_monitors(href).body load(data) end def get(uri) if data = connection.get_monitor(uri) new(data.body) end rescue Fog::Errors::NotFound nil end def from_data(data) new(data) end end end end end
Version data entries
13 entries across 13 versions & 7 rubygems