Sha256: 87631835e7703c5e94e18c16959f08c94115c64624a275c9b214e24cec3540ce
Contents?: true
Size: 671 Bytes
Versions: 40
Compression:
Stored size: 671 Bytes
Contents
require 'fog/core/collection' require 'fog/rackspace/models/monitoring/notification' module Fog module Rackspace class Monitoring class Notifications < Fog::Collection model Fog::Rackspace::Monitoring::Notification attribute :marker def all(options={}) data = service.list_notifications(options).body marker = data['metadata']['next_marker'] load(data['values']) end def get(notification_id) data = service.get_notification(notification_id).body new(data) rescue Fog::Rackspace::Monitoring::NotFound nil end end end end end
Version data entries
40 entries across 40 versions & 2 rubygems