Class: ESP::CustomSignature::Result::Alert
- Inherits:
-
Resource
- Object
- ActiveResource::Base
- Resource
- ESP::CustomSignature::Result::Alert
- Defined in:
- lib/esp/resources/custom_signature/result/alert.rb
Constant Summary
Constants inherited from Resource
Class Method Summary collapse
-
.find ⇒ Object
Not Implemented.
-
.for_result(custom_signature_result_id = nil) ⇒ Object
Returns all the alerts for a custom signature result identified by the custom_signature_result_id parameter.
-
.where ⇒ Object
Not Implemented.
Instance Method Summary collapse
-
#create ⇒ Object
Not Implemented.
-
#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 CustomSignature::Result::Alert.
Regular ARELlike methods are disabled.
25 26 27 |
# File 'lib/esp/resources/custom_signature/result/alert.rb', line 25 def self.find(*) fail ESP::NotImplementedError, 'Regular ARELlike methods are disabled. Use the .for_result method.' end |
.for_result(custom_signature_result_id = nil) ⇒ Object
Returns all the alerts for a custom signature result identified by the custom_signature_result_id parameter.
Parameters
custom_signature_result_id | Required | The ID of the custom signature result to retrieve alerts for
See API documentation for valid arguments
16 17 18 19 20 |
# File 'lib/esp/resources/custom_signature/result/alert.rb', line 16 def self.for_result(custom_signature_result_id = nil) fail ArgumentError, "You must supply a custom signature result id." unless custom_signature_result_id.present? # call find_every directly since find is overriden/not implemented find_every(from: "#{prefix}custom_signature_results/#{custom_signature_result_id}/alerts.json") end |
.where ⇒ Object
Not Implemented. You cannot search for CustomSignature::Result::Alert.
Regular ARELlike methods are disabled.
32 33 34 |
# File 'lib/esp/resources/custom_signature/result/alert.rb', line 32 def self.where(*) fail ESP::NotImplementedError, 'Regular ARELlike methods are disabled. Use the .for_result method.' end |
Instance Method Details
#create ⇒ Object
Not Implemented. You cannot create a CustomSignature::Result::Alert.
37 38 39 |
# File 'lib/esp/resources/custom_signature/result/alert.rb', line 37 def create fail ESP::NotImplementedError end |
#destroy ⇒ Object
Not Implemented. You cannot destroy a CustomSignature::Result::Alert.
47 48 49 |
# File 'lib/esp/resources/custom_signature/result/alert.rb', line 47 def destroy fail ESP::NotImplementedError end |
#update ⇒ Object
Not Implemented. You cannot update a CustomSignature::Result::Alert.
42 43 44 |
# File 'lib/esp/resources/custom_signature/result/alert.rb', line 42 def update fail ESP::NotImplementedError end |