Sha256: 7b6235241a6acac4628a0a5c52b9504308cd281907030f80b7ee1ffa47dd2e26

Contents?: true

Size: 504 Bytes

Versions: 3

Compression:

Stored size: 504 Bytes

Contents

# @author Manuel Dudda
module Abrupt
  module Transformation
    module Client
      # Transformation class for client visit data
      class Visitor < Transformation::Base
        def add_individuals
          return @result unless @values
          @values[:name] = @values[:ip]
          super
          @values.delete :name
          @values.each do |key, value|
            add_data_property(key, value) if value.is_a?(String)
          end
          @result
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
abrupt-1.0.1 lib/abrupt/transformation/client/visitor.rb
abrupt-1.0.0 lib/abrupt/transformation/client/visitor.rb
abrupt-0.0.2 lib/abrupt/transformation/client/visitor.rb