Class: ShopifyAPI::MarketingEvent

Inherits:
Base show all
Defined in:
lib/shopify_api/resources/marketing_event.rb

Instance Method Summary collapse

Methods inherited from Base

activate_session, #as_json, clear_session, #encode, #headers, init_prefix, init_prefix_explicit, #persisted?

Methods included from Countable

#count

Methods inherited from ActiveResource::Base

delete, headers

Instance Method Details

#add_engagements(engagements) ⇒ Object



3
4
5
6
# File 'lib/shopify_api/resources/marketing_event.rb', line 3

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