Class: Shark::Consent

Inherits:
Base
  • Object
show all
Extended by:
Shark::ContactService::Resource
Defined in:
lib/shark/consent.rb

Instance Method Summary collapse

Methods inherited from Base

add_datetime_accessors

Instance Method Details

#destroyObject



14
15
16
17
# File 'lib/shark/consent.rb', line 14

def destroy
  raise Shark::ActionNotSupportedError,
        'Shark::Consent#destroy is not supported'
end

#saveObject



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