Class: Ddr::Alert
- Inherits:
-
AuxiliaryResource
- Object
- ActiveResource::Base
- AuxiliaryResource
- Ddr::Alert
- Defined in:
- app/models/ddr/alert.rb
Constant Summary collapse
- ADMIN_SITE =
'admin'
- PUBLIC_SITE =
'public'
Class Method Summary collapse
-
.call(site) ⇒ Array
The active alerts for the requested application site.
Methods inherited from AuxiliaryResource
Class Method Details
.call(site) ⇒ Array
Returns the active alerts for the requested application site.
11 12 13 14 15 |
# File 'app/models/ddr/alert.rb', line 11 def self.call(site) get(:active, site: site).map { |resp| new(resp) } rescue ActiveResource::ServerError => e [] end |