Sha256: cdca115b781a69f1fd558c1c8b6d2fa2d1725f520fffe4022b05231a311ac0b0
Contents?: true
Size: 565 Bytes
Versions: 65
Compression:
Stored size: 565 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
65 entries across 65 versions & 6 rubygems