Sha256: b9392243c532f1993b31d97ce64933e472a3855086356ca49386af0068181bfd
Contents?: true
Size: 293 Bytes
Versions: 1
Compression:
Stored size: 293 Bytes
Contents
class Sysdig::Notifications < Sysdig::Collection model Sysdig::Notification def all(options={}) to = options[:to] || Time.now from = options[:from] || Time.at(Time.now.to_i - 86400) # 1 day load(service.get_notifications(from, to).body.fetch("notifications")) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sysdig-0.1.0 | lib/sysdig/notifications.rb |