Class: ShopifyAPI::MarketingEvent

Inherits:
Base
  • Object
show all
Includes:
Countable
Defined in:
lib/shopify_api/resources/marketing_event.rb

Instance Method Summary collapse

Methods included from Countable

#count

Methods inherited from Base

activate_session, api_version, api_version=, #as_json, clear_session, early_july_pagination?, #encode, headers, init_prefix, init_prefix_explicit, #persisted?, prefix, prefix=, prefix_source, resource_prefix, resource_prefix=, version_validation!

Instance Method Details

#add_engagements(engagements) ⇒ Object


5
6
7
8
# File 'lib/shopify_api/resources/marketing_event.rb', line 5

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