Class: NameDrop::Resources::Share
- Inherits:
-
Base
- Object
- Base
- NameDrop::Resources::Share
show all
- Defined in:
- lib/name_drop/resources/share.rb
Instance Attribute Summary
Attributes inherited from Base
#attributes, #errors
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
all, build, #destroy, #initialize, response_key
Class Method Details
.endpoint(params = {}) ⇒ Object
12
13
14
|
# File 'lib/name_drop/resources/share.rb', line 12
def self.endpoint(params = {})
"alerts/#{params[:alert_id]}/shares"
end
|
.find(_id) ⇒ Object
4
5
6
|
# File 'lib/name_drop/resources/share.rb', line 4
def self.find(_id)
raise NotImplementedError, 'Single fetch share not supported'
end
|
Instance Method Details
#endpoint(params = {}) ⇒ Object
16
17
18
|
# File 'lib/name_drop/resources/share.rb', line 16
def endpoint(params = {})
self.class.endpoint(params)
end
|
#save ⇒ Object
8
9
10
|
# File 'lib/name_drop/resources/share.rb', line 8
def save
raise NotImplementedError, 'Single fetch update not supported'
end
|