class Talkable::API::Origin
Constants
- AFFILIATE_MEMBER
- DEFAULT_TRAFFIC_SOURCE
- EVENT
- PURCHASE
Public Class Methods
create(origin_type, params)
click to toggle source
# File lib/talkable/api/origin.rb, line 11 def create(origin_type, params) post '/origins', { type: origin_type, data: default_data.merge(params), } end
Protected Class Methods
default_data()
click to toggle source
# File lib/talkable/api/origin.rb, line 20 def default_data { traffic_source: DEFAULT_TRAFFIC_SOURCE, } end