Class: NodataMonitor::Alerts

Inherits:
Object
  • Object
show all
Defined in:
lib/nodata-monitor.rb

Class Method Summary collapse

Class Method Details

.retrieve_all(credential) ⇒ Object



30
31
32
33
34
# File 'lib/nodata-monitor.rb', line 30

def self.retrieve_all credential
  credential.client.get_all_alerts[1]['alerts'].map do |alert|
    Alert.new(alert)
  end
end