thankful-gpu-70135
07/25/2023, 1:42 AM:userId => '1hKOmRA4GRlm',
:traits => {
:email => "alex@example.com",
:createdAt => "2023-07-24T00:00:00Z",
:subscribe => true,
},
:context => {:ip => '10.81.20.10'},
it should be possible instead to define like this:
userId: '1hKOmRA4GRlm',
traits: {
email: "alex@example.com",
createdAt: "2023-07-24T00:00:00Z",
subscribe: true,
},
context: {ip: '10.81.20.10'},
I wanted to check if this second method is supported by rudderstack? The gemspec specifies Rudderstack requires >= 2.0 but I wanted to make sure before making this assumption:
https://github.com/rudderlabs/rudder-sdk-ruby/blob/74e6a0281286cebaebfd9e16b6e5cbf3ea3a055a/rudder-sdk-ruby.gemspec#L16C36-L16C39millions-activity-52391
07/25/2023, 1:42 AMkind-carpenter-27609
07/25/2023, 10:33 AMkind-carpenter-27609
07/25/2023, 10:34 AMkind-carpenter-27609
07/25/2023, 3:11 PMlemon-hydrogen-98120
07/25/2023, 4:23 PManalytics.identify(
user_id: '1hKOmRA4GRlm',
traits: {
email: "alex@example.com",
createdAt: "2023-07-24T00:00:00Z",
subscribe: true
},
context: { ip: '10.81.20.10' }
)thankful-gpu-70135
07/25/2023, 5:00 PMrequire 'rudder-sdk-ruby'
analytics = Rudder::Analytics.new(
write_key: 'WRITE_KEY',
data_plane_url: 'DATA_PLANE_URL',
gzip: true
)lemon-hydrogen-98120
07/26/2023, 4:06 AMthankful-gpu-70135
07/26/2023, 4:17 AMkind-carpenter-27609
07/31/2023, 4:22 AM