Class: Shark::Contract
- Extended by:
- Shark::ContactService::Resource
- Defined in:
- lib/shark/contract.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#destroy ⇒ Object
14 15 16 17 |
# File 'lib/shark/contract.rb', line 14 def destroy raise Shark::ActionNotSupportedError, 'Shark::Contract#destroy is not supported' end |
#save ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/shark/contract.rb', line 19 def save if self['id'].present? raise Shark::ActionNotSupportedError, 'Shark::Contract#save is not supported for persisted consents' else super end end |
#update_attributes(_attributes = {}) ⇒ Object
9 10 11 12 |
# File 'lib/shark/contract.rb', line 9 def update_attributes(_attributes = {}) raise Shark::ActionNotSupportedError, 'Shark::Contract#update_attributes is not supported' end |