Class: ESP::Suppression::Signature
- Defined in:
- lib/esp/resources/suppression/signature.rb
Constant Summary
Constants inherited from Resource
Class Method Summary collapse
-
.find ⇒ Object
Not Implemented.
-
.where ⇒ Object
Not Implemented.
Instance Method Summary collapse
-
#create ⇒ Object
This instance method is called by the #save method when new? is true.
-
#destroy ⇒ Object
Not Implemented.
-
#update ⇒ Object
Not Implemented.
Methods inherited from Resource
arrange_options, filters, make_pageable, #serializable_hash
Class Method Details
.find ⇒ Object
Not Implemented. You cannot search for Suppression::Signature.
Regular ARELlike methods are disabled. Use the ESP::Suppression object to search suppressions.
15 16 17 |
# File 'lib/esp/resources/suppression/signature.rb', line 15 def self.find(*) fail ESP::NotImplementedError, 'Regular ARELlike methods are disabled. Use the ESP::Suppression object to search suppressions' end |
.where ⇒ Object
Not Implemented. You cannot search for Suppression::Signature.
Regular ARELlike methods are disabled. Use the ESP::Suppression object to search suppressions.
8 9 10 |
# File 'lib/esp/resources/suppression/signature.rb', line 8 def self.where(*) fail ESP::NotImplementedError, 'Regular ARELlike methods are disabled. Use the ESP::Suppression object to search suppressions' end |
Instance Method Details
#create ⇒ Object
This instance method is called by the #save method when new? is true.
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/esp/resources/suppression/signature.rb', line 30 def create # :nodoc: original_prefix = self.class.prefix if attributes[:alert_id] self.class.prefix += "alert/:alert_id/" [:alert_id] = alert_id end super ensure self.class.prefix = original_prefix end |
#destroy ⇒ Object
Not Implemented. You cannot destroy a Suppression::Signature.
25 26 27 |
# File 'lib/esp/resources/suppression/signature.rb', line 25 def destroy fail ESP::NotImplementedError end |
#update ⇒ Object
Not Implemented. You cannot update a Suppression::Signature.
20 21 22 |
# File 'lib/esp/resources/suppression/signature.rb', line 20 def update fail ESP::NotImplementedError end |