Sha256: 1f60e274e52a81046438ccdd03c1f25b0615aa111110dbb01a650c0e2367a2bf

Contents?: true

Size: 237 Bytes

Versions: 13

Compression:

Stored size: 237 Bytes

Contents

module ShopifyAPI
  class MarketingEvent < Base
    include Countable

    def add_engagements(engagements)
      engagements = { engagements: Array.wrap(engagements) }
      post(:engagements, {}, engagements.to_json)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shopify_api-9.2.0 lib/shopify_api/resources/marketing_event.rb
shopify_api-9.1.0 lib/shopify_api/resources/marketing_event.rb
shopify_api-9.0.4 lib/shopify_api/resources/marketing_event.rb
shopify_api-9.0.3 lib/shopify_api/resources/marketing_event.rb
shopify_api-9.0.2 lib/shopify_api/resources/marketing_event.rb
shopify_api-9.0.1 lib/shopify_api/resources/marketing_event.rb
shopify_api-9.0.0 lib/shopify_api/resources/marketing_event.rb
shopify_api-8.1.0 lib/shopify_api/resources/marketing_event.rb
shopify_api-8.0.0 lib/shopify_api/resources/marketing_event.rb
shopify_api-7.1.0 lib/shopify_api/resources/marketing_event.rb
shopify_api-7.0.2 lib/shopify_api/resources/marketing_event.rb
shopify_api-7.0.1 lib/shopify_api/resources/marketing_event.rb
shopify_api-7.0.0 lib/shopify_api/resources/marketing_event.rb