Class: Talkable::API::Origin

Inherits:
Base
  • Object
show all
Defined in:
lib/talkable/api/origin.rb

Constant Summary collapse

AFFILIATE_MEMBER =
"AffiliateMember".freeze
PURCHASE =
"Purchase".freeze
EVENT =
"Event".freeze
DEFAULT_TRAFFIC_SOURCE =
'talkable-gem'

Class Method Summary collapse

Methods inherited from Base

get, post, put

Class Method Details

.create(origin_type, params) ⇒ Object



11
12
13
14
15
16
# File 'lib/talkable/api/origin.rb', line 11

def create(origin_type, params)
  post '/origins', {
    type: origin_type,
    data: default_data.merge(params),
  }
end