Sha256: 820f4935a61e7739d40f4f8cc70995bb50fc72f0e44f6e5da12b6612327f811d
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
module Voucherify module Service class Events attr_reader :client def initialize(client) @client = client end def track(event, metadata, customer, referral) @client.post('/events', { :event => event, :metadata => metadata, :customer => customer, :referral => referral }.to_json) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voucherify-2.1.0 | lib/voucherify/service/events.rb |