Class: KlaviyoAPI::ListExclusion

Inherits:
Base
  • Object
show all
Defined in:
lib/klaviyo_api/resources/list_exclusion.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

activate_session, element_path, headers, reset_session, #to_h

Class Method Details

.find_single(_scope, _options) ⇒ Object



12
13
14
# File 'lib/klaviyo_api/resources/list_exclusion.rb', line 12

def find_single(_scope, _options)
  raise KlaviyoAPI::InvalidOperation, 'Cannot get single Exclusion via API. Please use KlaviyoAPI::ListExclusion#all.'
end

Instance Method Details

#createObject



21
22
23
# File 'lib/klaviyo_api/resources/list_exclusion.rb', line 21

def create
  raise KlaviyoAPI::InvalidOperation, 'Cannot create ListExclusions via API.'
end

#destroyObject



17
18
19
# File 'lib/klaviyo_api/resources/list_exclusion.rb', line 17

def destroy
  raise KlaviyoAPI::InvalidOperation, 'Cannot delete ListExclusions via API.'
end

#updateObject



25
26
27
# File 'lib/klaviyo_api/resources/list_exclusion.rb', line 25

def update
  raise KlaviyoAPI::InvalidOperation, 'Cannot update ListExclusions via API.'
end