Sha256: f5a789da13a83deefeb2d4800740ac52a3fb9724778f54d2dd2de1688a490734
Contents?: true
Size: 528 Bytes
Versions: 5
Compression:
Stored size: 528 Bytes
Contents
# frozen_string_literal: true class ExperimentVariant attr_accessor :name, :config def initialize(name = nil, config) @name = name @config = config end def ==(o) return true if self.object_id == o.object_id return false if o.nil? || self.class != o.class that = o @name == that.name && @config == that.config end def hash_code { name: @name, config: @config } end def to_s "ExperimentVariant{" + "name='#{@name}'" + ", config='#{@config}'" + "}" end end
Version data entries
5 entries across 5 versions & 1 rubygems