Sha256: a50fcd1fb54d0c63cd0696ed2b2c88a07016c1ae69017ce9d6b82e8c64f2836e

Contents?: true

Size: 456 Bytes

Versions: 1

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

module BrazeRuby
  module REST
    class CreateCatalogItems < Base
      attr_reader :params
      attr_reader :catalog_name

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
braze_ruby-0.10.0 lib/braze_ruby/rest/create_catalog_items.rb