Class: NameDrop::Resources::Alert
- Inherits:
-
Base
- Object
- Base
- NameDrop::Resources::Alert
show all
- Defined in:
- lib/name_drop/resources/alert.rb
Instance Attribute Summary
Attributes inherited from Base
#attributes, #errors
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
all, build, find, #initialize, response_key, #save
Class Method Details
.endpoint(_params = {}) ⇒ Object
12
13
14
|
# File 'lib/name_drop/resources/alert.rb', line 12
def self.endpoint(_params = {})
'alerts'
end
|
Instance Method Details
#destroy ⇒ Object
4
5
6
|
# File 'lib/name_drop/resources/alert.rb', line 4
def destroy
raise NotImplementedError, 'You cannot delete an Alert directly'
end
|
#endpoint ⇒ Object
8
9
10
|
# File 'lib/name_drop/resources/alert.rb', line 8
def endpoint
self.class.endpoint
end
|