Class: Screenbeacon::Alert
- Inherits:
-
APIResource
- Object
- ScreenbeaconObject
- APIResource
- Screenbeacon::Alert
- Includes:
- Screenbeacon::APIOperations::List
- Defined in:
- lib/screenbeacon/alert.rb
Class Method Summary collapse
-
.resolve_all(filters = {}, opts = {}) ⇒ Object
Resolve all alerts on account.
Instance Method Summary collapse
Methods included from Screenbeacon::APIOperations::List
Methods inherited from APIResource
class_name, #refresh, retrieve, url, #url
Methods included from Screenbeacon::APIOperations::Request
Methods inherited from ScreenbeaconObject
#[], #[]=, #_dump, _load, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #respond_to?, #serialize_nested_object, serialize_params, #to_hash, #to_json, #to_s, #values
Constructor Details
This class inherits a constructor from Screenbeacon::ScreenbeaconObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Screenbeacon::ScreenbeaconObject
Class Method Details
.resolve_all(filters = {}, opts = {}) ⇒ Object
Resolve all alerts on account
11 12 13 14 |
# File 'lib/screenbeacon/alert.rb', line 11 def self.resolve_all(filters={}, opts={}) response, opts = request(:post, resolve_all_url, filters, opts) Util.convert_to_screenbeacon_object(response, opts) end |
Instance Method Details
#resolve(opts = {}) ⇒ Object
5 6 7 8 |
# File 'lib/screenbeacon/alert.rb', line 5 def resolve(opts={}) response, opts = request(:patch, resolve_url, {}, opts) refresh_from(response, opts) end |