Class: NameDrop::Resources::Mention

Inherits:
Base
  • Object
show all
Defined in:
lib/name_drop/resources/mention.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes, #errors

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

all, build, #initialize, response_key

Constructor Details

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

Class Method Details

.endpoint(params = {}) ⇒ Object



16
17
18
# File 'lib/name_drop/resources/mention.rb', line 16

def self.endpoint(params = {})
  "alerts/#{params[:alert_id]}/mentions"
end

.find(_id) ⇒ Object

Raises:

  • (NotImplementedError)


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

def self.find(_id)
  raise NotImplementedError, 'Single fetch mention not supported'
end

Instance Method Details

#destroyObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/name_drop/resources/mention.rb', line 12

def destroy
  raise NotImplementedError, 'You cannot alter a mention'
end

#saveObject

Raises:

  • (NotImplementedError)


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

def save
  raise NotImplementedError, 'You cannot alter a mention'
end