Sha256: 61d5855bdd916646fb9b799a017f06e47f60c6c4b1f25e23e82ea5f63a765a4b
Contents?: true
Size: 504 Bytes
Versions: 7
Compression:
Stored size: 504 Bytes
Contents
module Voucherify module Service class Events attr_reader :client def initialize(client) @client = client end def track(event, metadata, customer, referral = nil) @client.post('/events', { :event => event, :metadata => metadata, :customer => customer, :referral => referral }.to_json) end def track_event(event) @client.post('/events', event.to_json) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems