Sha256: 7abb36fc7b069ab6964a495be0ba41e3dfb00335d0b7bfe562560ba167bcbfb6
Contents?: true
Size: 645 Bytes
Versions: 28
Compression:
Stored size: 645 Bytes
Contents
class TestTrack::Assignment include TestTrack::RequiredOptions attr_accessor :context attr_reader :visitor, :split_name attr_writer :variant def initialize(opts = {}) @visitor = require_option!(opts, :visitor) @split_name = require_option!(opts, :split_name).to_s raise ArgumentError, "unknown opts: #{opts.keys.to_sentence}" if opts.present? end def variant @variant ||= _variant end def unsynced? true end private def _variant return if visitor.offline? variant = TestTrack::VariantCalculator.new(visitor: visitor, split_name: split_name).variant variant && variant.to_s end end
Version data entries
28 entries across 28 versions & 1 rubygems