Sha256: 2cfcdd51603aebb409863b1155b3533e4a98f86df3303d4228ba9fb327ced45f
Contents?: true
Size: 569 Bytes
Versions: 6
Compression:
Stored size: 569 Bytes
Contents
require File.expand_path("../monitor", __FILE__) 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
6 entries across 6 versions & 2 rubygems