Sha256: 1e649b44bb2827ab9f56b975f06403f32d26e44fb63e3cea029add54d417a597

Contents?: true

Size: 341 Bytes

Versions: 7

Compression:

Stored size: 341 Bytes

Contents

# frozen_string_literal: true

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] && isoify_dates!(options[:traits])
        )
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
simple_segment-1.5.0 lib/simple_segment/operations/identify.rb
simple_segment-1.4.0 lib/simple_segment/operations/identify.rb
simple_segment-1.3.0 lib/simple_segment/operations/identify.rb
simple_segment-1.2.0 lib/simple_segment/operations/identify.rb
simple_segment-1.1.0 lib/simple_segment/operations/identify.rb
simple_segment-1.0.0 lib/simple_segment/operations/identify.rb
simple_segment-1.0.0.pre lib/simple_segment/operations/identify.rb