Class: SimpleSegment::Operations::Identify
- Inherits:
-
Operation
- Object
- Operation
- SimpleSegment::Operations::Identify
show all
- Defined in:
- lib/simple_segment/operations/identify.rb
Constant Summary
Constants inherited
from Operation
Operation::DEFAULT_CONTEXT
Instance Attribute Summary
Attributes inherited from Operation
#options, #request
Instance Method Summary
collapse
Methods inherited from Operation
#initialize
Instance Method Details
#build_payload ⇒ Object
8
9
10
11
12
|
# File 'lib/simple_segment/operations/identify.rb', line 8
def build_payload
base_payload.merge({
traits: options[:traits]
})
end
|
#call ⇒ Object
4
5
6
|
# File 'lib/simple_segment/operations/identify.rb', line 4
def call
request.post('/v1/identify', build_payload)
end
|