class ESP::Suppression::Region
Public Class Methods
find(*)
click to toggle source
Not Implemented. You cannot search for Suppression::Region
.
Regular ARELlike methods are disabled. Use the ESP::Suppression
object to search suppressions.
@return [void]
# File lib/esp/resources/suppression/region.rb, line 19 def self.find(*) fail ESP::NotImplementedError, 'Regular ARELlike methods are disabled. Use the ESP::Suppression object to search suppressions' end
where(*)
click to toggle source
Not Implemented. You cannot search for Suppression::Region
.
Regular ARELlike methods are disabled. Use the ESP::Suppression
object to search suppressions.
@return [void]
# File lib/esp/resources/suppression/region.rb, line 10 def self.where(*) fail ESP::NotImplementedError, 'Regular ARELlike methods are disabled. Use the ESP::Suppression object to search suppressions' end
Public Instance Methods
create()
click to toggle source
This instance method is called by the save method when new? is true.
@private
Calls superclass method
# File lib/esp/resources/suppression/region.rb, line 40 def create original_prefix = self.class.prefix if attributes[:alert_id] self.class.prefix += "alert/:alert_id/" prefix_options[:alert_id] = alert_id end super ensure self.class.prefix = original_prefix end
destroy()
click to toggle source
Not Implemented. You cannot destroy a Suppression::Region
.
@return [void]
# File lib/esp/resources/suppression/region.rb, line 33 def destroy fail ESP::NotImplementedError end
update()
click to toggle source
Not Implemented. You cannot update a Suppression::Region
.
@return [void]
# File lib/esp/resources/suppression/region.rb, line 26 def update fail ESP::NotImplementedError end