class Runcible::Resources::EventNotifier
@see docs.pulpproject.org/dev-guide/integration/events/index.html
Public Class Methods
Generates the API path for Event Notifiers
@param [String] id the ID of the event notifier @return [String] the event notifier path, may contain the ID if passed
# File lib/runcible/resources/event_notifier.rb, line 20 def self.path(id = nil) id.nil? ? 'events/' : "events/#{id}/" end
Public Instance Methods
Creates an Event Notification
@param [String] notifier_type_id the type ID of the event notifier @param [Hash] notifier_config configuration options for the notifier @param [Hash] event_types event types to include in the notifier @return [RestClient::Response]
# File lib/runcible/resources/event_notifier.rb, line 30 def create(notifier_type_id, notifier_config, event_types) required = required_params(binding.send(:local_variables), binding) call(:post, path, :payload => {:required => required}) end
Deletes an Event Notification
@param [String] id the ID of the event notifier @return [RestClient::Response]
# File lib/runcible/resources/event_notifier.rb, line 39 def delete(id) call(:delete, path(id)) end
List all Event Notifiers
@param [String] id the ID of the event notifier @return [RestClient::Response]
# File lib/runcible/resources/event_notifier.rb, line 47 def list call(:get, path) end