Sha256: a04a06a3cc29fa588c8bf7107fb811f59027296207353630828cd737e54940ca

Contents?: true

Size: 491 Bytes

Versions: 5

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

module RudderAnalyticsSync
  module Operations
    class Screen < Operation
      def call
        request.post('/v1/screen', build_payload)
      end

      def build_payload
        properties = (options[:properties] && isoify_dates!(options[:properties])) || {}

        base_payload.merge(
          name: options[:name],
          event: options[:name],
          properties: properties.merge({name: options[:name]})
        )
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rudder_analytics_sync-1.0.7 lib/rudder_analytics_sync/operations/screen.rb
rudder_analytics_sync-1.0.6 lib/rudder_analytics_sync/operations/screen.rb
rudder_analytics_sync-1.0.5 lib/rudder_analytics_sync/operations/screen.rb
rudder_analytics_sync-1.0.4 lib/rudder_analytics_sync/operations/screen.rb
rudder_analytics_sync-1.0.3 lib/rudder_analytics_sync/operations/screen.rb