Sha256: 024380f8ad5bf3847a154afd1f8a8fe9f2f59b5d8d1a2321eb6b196cf63e3f09
Contents?: true
Size: 564 Bytes
Versions: 17
Compression:
Stored size: 564 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 = service.get_monitors(href).body load(data) end def get(uri) if data = service.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
17 entries across 17 versions & 5 rubygems