Sha256: bdc85f189620fe0ecf5966524ffdea7a6b679f6d3137da13420d4ca79ea2a952
Contents?: true
Size: 581 Bytes
Versions: 3
Compression:
Stored size: 581 Bytes
Contents
module Screenbeacon class Alert < APIResource include Screenbeacon::APIOperations::List def resolve(opts={}) response, opts = request(:patch, resolve_url, {}, opts) refresh_from(response, opts) end # Resolve all alerts on account def self.resolve_all(filters={}, opts={}) response, opts = request(:post, resolve_all_url, filters, opts) Util.convert_to_screenbeacon_object(response, opts) end private def resolve_url url + '/resolve' end def self.resolve_all_url url + '/resolve' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
screenbeacon-1.0.2 | lib/screenbeacon/alert.rb |
screenbeacon-1.0.1 | lib/screenbeacon/alert.rb |
screenbeacon-1.0.0 | lib/screenbeacon/alert.rb |