Class: ESP::Dashboard
- Inherits:
-
Resource
- Object
- ActiveResource::Base
- Resource
- ESP::Dashboard
- Defined in:
- lib/esp/resources/dashboard.rb
Class Method Summary collapse
-
.find ⇒ void
Not Implemented.
-
.recent ⇒ ESP::Dashboard
private
Returns with data from reports run in the last 2 hours.
-
.where(attrs) ⇒ void
Not Implemented.
Instance Method Summary collapse
-
#destroy ⇒ void
Not Implemented.
-
#save ⇒ void
Not Implemented.
Methods included from Dirty
#changed_attributes, #original_attributes, #original_attributes=
Methods included from LoadWithOriginalAttributes
Class Method Details
.find ⇒ void
This method returns an undefined value.
Not Implemented. You cannot search for a Dashboard.
Regular ARELlike methods are disabled.
8 9 10 |
# File 'lib/esp/resources/dashboard.rb', line 8 def self.find(*) fail ESP::NotImplementedError, 'Regular ARELlike methods are disabled. Use the .recent method.' end |
.recent ⇒ ESP::Dashboard
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns with data from reports run in the last 2 hours
44 45 46 47 |
# File 'lib/esp/resources/dashboard.rb', line 44 def self.recent # call find_every directly since find is overridden/not implemented where from: "#{prefix}dashboard/recent" end |
.where(attrs) ⇒ void
This method returns an undefined value.
Not Implemented. You cannot search for a Dashboard.
Regular ARELlike methods are disabled.
17 18 19 20 21 22 23 24 |
# File 'lib/esp/resources/dashboard.rb', line 17 def self.where(attrs) # when calling `recent.next_page` it will come into here if attrs[:from].to_s.include?('recent') super else fail ESP::NotImplementedError, 'Regular ARELlike methods are disabled. Use the .recent method.' end end |
Instance Method Details
#destroy ⇒ void
This method returns an undefined value.
Not Implemented. You cannot destroy a Dashboard.
36 37 38 |
# File 'lib/esp/resources/dashboard.rb', line 36 def destroy fail ESP::NotImplementedError end |
#save ⇒ void
This method returns an undefined value.
Not Implemented. You cannot create or update a Dashboard.
29 30 31 |
# File 'lib/esp/resources/dashboard.rb', line 29 def save fail ESP::NotImplementedError end |