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