README.md in securenative-0.1.17 vs README.md in securenative-0.1.18

- old
+ new

@@ -97,11 +97,11 @@ securenative = SecureNative.instance context = securenative.context_builder(ip = '127.0.0.1', client_token = 'SECURED_CLIENT_TOKEN', 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' }) -event_options = EventOptionsBuilder(event_type = EventTypes::LOG_IN, +event_options = EventOptions(event_type = EventTypes::LOG_IN, user_id = '1234', user_traits = UserTraits('Your Name', 'name@gmail.com', '+1234567890'), context = context, properties = {prop1 => 'CUSTOM_PARAM_VALUE', prop2 => true, prop3 => 3}).build securenative.track(event_options) ``` @@ -117,11 +117,11 @@ def track(request) securenative = SecureNative.instance context = SecureNative.context_builder.from_http_request(request).build - event_options = EventOptionsBuilder(event_type = EventTypes::LOG_IN, + event_options = EventOptions(event_type = EventTypes::LOG_IN, user_id = '1234', user_traits = UserTraits('Your Name', 'name@gmail.com', '+1234567890'), context = context, properties = {prop1 => 'CUSTOM_PARAM_VALUE', prop2 => true, prop3 => 3}).build securenative.track(event_options) end @@ -140,10 +140,10 @@ def verify(request) securenative = SecureNative.instance context = SecureNative.context_builder.from_http_request(request).build - event_options = EventOptionsBuilder(event_type = EventTypes::LOG_IN, + event_options = EventOptions(event_type = EventTypes::LOG_IN, user_id = '1234', user_traits = UserTraits('Your Name', 'name@gmail.com', '+1234567890'), context = context, properties = {prop1 => 'CUSTOM_PARAM_VALUE', prop2 => true, prop3 => 3}).build verify_result = securenative.verify(event_options) verify_result.risk_level # Low, Medium, High \ No newline at end of file