Class: ESP::Dashboard
- Defined in:
- lib/esp/resources/dashboard.rb
Constant Summary
Constants inherited from Resource
Class Method Summary collapse
-
.find ⇒ Object
Not Implemented.
-
.recent ⇒ Object
Returns a Dashboard object with data from reports run in the last 2 hours.
-
.where ⇒ Object
Not Implemented.
Instance Method Summary collapse
-
#destroy ⇒ Object
Not Implemented.
-
#save ⇒ Object
Not Implemented.
Methods inherited from Resource
arrange_options, filters, make_pageable, #serializable_hash
Class Method Details
.find ⇒ Object
Not Implemented. You cannot search for a Dashboard.
Regular ARELlike methods are disabled.
6 7 8 |
# File 'lib/esp/resources/dashboard.rb', line 6 def self.find(*) fail ESP::NotImplementedError, 'Regular ARELlike methods are disabled. Use the .recent method.' end |
.recent ⇒ Object
Returns a Dashboard object with data from reports run in the last 2 hours
Note
The dashboard is used internally for the dashboard page on esp.evident.io and is therefore not considered part of the public API and may change without notice.
33 34 35 36 |
# File 'lib/esp/resources/dashboard.rb', line 33 def self.recent # call find_every directly since find is overridden/not implemented find_every from: "#{prefix}dashboard/recent.#{format.extension}" end |
.where ⇒ Object
Not Implemented. You cannot search for a Dashboard.
Regular ARELlike methods are disabled.
13 14 15 |
# File 'lib/esp/resources/dashboard.rb', line 13 def self.where(*) fail ESP::NotImplementedError, 'Regular ARELlike methods are disabled. Use the .recent method.' end |
Instance Method Details
#destroy ⇒ Object
Not Implemented. You cannot destroy a Dashboard.
23 24 25 |
# File 'lib/esp/resources/dashboard.rb', line 23 def destroy fail ESP::NotImplementedError end |
#save ⇒ Object
Not Implemented. You cannot create or update a Dashboard.
18 19 20 |
# File 'lib/esp/resources/dashboard.rb', line 18 def save fail ESP::NotImplementedError end |