Sha256: b0a284ee74e8f82f9944e858b86d1e7599a6ef5f77a01c1c330e23cf18c6d9de
Contents?: true
Size: 654 Bytes
Versions: 1
Compression:
Stored size: 654 Bytes
Contents
require 'tty-prompt' module Analytics module Interactor class Event def self.all_enum_properties(events) events .map { |event| event.dup } .reject { |event| event['properties'].nil? } .each do | event| event['properties'] = event['properties'].reject { |property| property['values'].nil? } end end def self.enum_properties_from_event(event) event_copy = event.dup return nil if event_copy['properties'].nil? event_copy['properties'] = event_copy['properties'].reject { |property| property['values'].nil? } event_copy end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ios_analytics_cli-1.1.0 | lib/ios_analytics_cli/interactors/event.rb |