Class: BrazeRuby::REST::DeleteCatalogItems

Inherits:
Base
  • Object
show all
Defined in:
lib/braze_ruby/rest/delete_catalog_items.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key, braze_url, options, catalog_name, **params) ⇒ DeleteCatalogItems

Returns a new instance of DeleteCatalogItems.



9
10
11
12
13
# File 'lib/braze_ruby/rest/delete_catalog_items.rb', line 9

def initialize(api_key, braze_url, options, catalog_name, **params)
  @catalog_name = catalog_name
  @params = params
  super(api_key, braze_url, options)
end

Instance Attribute Details

#catalog_nameObject (readonly)

Returns the value of attribute catalog_name.



7
8
9
# File 'lib/braze_ruby/rest/delete_catalog_items.rb', line 7

def catalog_name
  @catalog_name
end

#paramsObject (readonly)

Returns the value of attribute params.



6
7
8
# File 'lib/braze_ruby/rest/delete_catalog_items.rb', line 6

def params
  @params
end

Instance Method Details

#performObject



15
16
17
# File 'lib/braze_ruby/rest/delete_catalog_items.rb', line 15

def perform
  http.delete("/catalogs/#{@catalog_name}/items", @params)
end