@@ -99,7 +99,7 @@ securenative = SecureNative.instance
9999context = securenative.context_builder(ip = ' 127.0.0.1' , client_token = ' SECURED_CLIENT_TOKEN' ,
100100 headers = { ' user-agent' => ' Mozilla/5.0 (iPad; U; CPU OS 3_2_1 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Mobile/7B405' })
101101
102- event_options = EventOptions (event_type = EventTypes ::LOG_IN ,
102+ event_options = SecureNativeEventOptions (event_type = EventTypes ::LOG_IN ,
103103 user_id = ' 1234' , user_traits = UserTraits (' Your Name' , ' name@gmail.com' , ' +1234567890' ),
104104 context = context, properties = {prop1 => ' CUSTOM_PARAM_VALUE' , prop2 => true , prop3 => 3 }).build
105105
@@ -119,7 +119,7 @@ def track(request)
119119 securenative = SecureNative .instance
120120 context = SecureNative .context_builder.from_http_request(request).build
121121
122- event_options = EventOptions (event_type = EventTypes ::LOG_IN ,
122+ event_options = SecureNativeEventOptions (event_type = EventTypes ::LOG_IN ,
123123 user_id = ' 1234' , user_traits = UserTraits (' Your Name' , ' name@gmail.com' , ' +1234567890' ),
124124 context = context, properties = {prop1 => ' CUSTOM_PARAM_VALUE' , prop2 => true , prop3 => 3 }).build
125125
@@ -142,7 +142,7 @@ def verify(request)
142142 securenative = SecureNative .instance
143143 context = SecureNative .context_builder.from_http_request(request).build
144144
145- event_options = EventOptions (event_type = EventTypes ::LOG_IN ,
145+ event_options = SecureNativeEventOptions (event_type = EventTypes ::LOG_IN ,
146146 user_id = ' 1234' , user_traits = UserTraits (' Your Name' , ' name@gmail.com' , ' +1234567890' ),
147147 context = context, properties = {prop1 => ' CUSTOM_PARAM_VALUE' , prop2 => true , prop3 => 3 }).build
148148
0 commit comments