Class: BrazeRuby::REST::UpdateCatalogItems

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of UpdateCatalogItems.



9
10
11
12
13
# File 'lib/braze_ruby/rest/update_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/update_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/update_catalog_items.rb', line 6

def params
  @params
end

Instance Method Details

#performObject



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

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