Sha256: 9266ac06de2e6dfce3465e6e583a9fd35b5aaf4285136107422e06ea4117d406
Contents?: true
Size: 456 Bytes
Versions: 49
Compression:
Stored size: 456 Bytes
Contents
module Wbase module Dripable def update_subscriber! drip.create_or_update_subscriber( user.email, status: user.status, user_id: user.id, custom_fields: { name: user.name, api_key: user.api_key, } ) end def drip @client ||= Drip::Client.new do |c| c.api_key = ENV['DRIP_API_TOKEN'] c.account_id = ENV['DRIP_ACCOUNT_ID'] end end end end
Version data entries
49 entries across 49 versions & 1 rubygems