Sha256: cc2734eeee90f38f85ca3c86e0f265189b1c9e917356e6e025df83375991e51c

Contents?: true

Size: 371 Bytes

Versions: 2

Compression:

Stored size: 371 Bytes

Contents

# frozen_string_literal: true

module BrazeRuby
  module REST
    class DeleteCatalog < Base
      attr_reader :params

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
braze_ruby-0.11.0 lib/braze_ruby/rest/delete_catalog.rb
braze_ruby-0.10.0 lib/braze_ruby/rest/delete_catalog.rb