Skip to content

Commit 8ca3aee

Browse files
update: Enable keyword initialization for CmabDecision and CmabCacheValue structs (otherwise breaks in ruby version change)
1 parent 2282eb1 commit 8ca3aee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/optimizely/cmab/cmab_service.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
require 'securerandom'
2323

2424
module Optimizely
25-
CmabDecision = Struct.new(:variation_id, :cmab_uuid)
26-
CmabCacheValue = Struct.new(:attributes_hash, :variation_id, :cmab_uuid)
25+
CmabDecision = Struct.new(:variation_id, :cmab_uuid, keyword_init: true)
26+
CmabCacheValue = Struct.new(:attributes_hash, :variation_id, :cmab_uuid, keyword_init: true)
2727

2828
# Default CMAB service implementation
2929
class DefaultCmabService

0 commit comments

Comments
 (0)