Sha256: 4dcd78c8f4ae2711928d850b1aae36d3ee1772f6702270035008ecacec7d2f83
Contents?: true
Size: 538 Bytes
Versions: 3
Compression:
Stored size: 538 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
absmartly-sdk-1.0.6 | lib/json/experiment_variant.rb |
absmartly-sdk-1.0.5 | lib/json/experiment_variant.rb |
absmartly-sdk-0.1.2 | lib/json/experiment_variant.rb |