Class: NameDrop::Resources::Alert

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from NameDrop::Resources::Base

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

#destroyObject

Raises:

  • (NotImplementedError)


4
5
6
# File 'lib/name_drop/resources/alert.rb', line 4

def destroy
  raise NotImplementedError, 'You cannot delete an Alert directly'
end

#endpointObject



8
9
10
# File 'lib/name_drop/resources/alert.rb', line 8

def endpoint
  self.class.endpoint
end