Sha256: 2fedd6c63eba7dcc5cb4a11897c17035e26792cb7a8872b4c56b75a4dd74373c

Contents?: true

Size: 275 Bytes

Versions: 2

Compression:

Stored size: 275 Bytes

Contents

module SimpleSegment
  module Operations
    class Identify < Operation
      def call
        request.post('/v1/identify', build_payload)
      end

      def build_payload
        base_payload.merge(
          traits: options[:traits]
        )
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_segment-0.2.1 lib/simple_segment/operations/identify.rb
simple_segment-0.2.0 lib/simple_segment/operations/identify.rb