def get_variant(identifier)
      # pull in an experiment
      experiment = self.get_experiment(identifier)

      if self.run_experiment?(experiment)
        # select variant for the experiment
        variant = self.select_variant(experiment)
        # return if it it's present
        return variant if variant.present?
      end
      # return blank value if we don't have an experiment or don't get
      # a valid value
      return Ostruct.new(
        name: "default",
        index: -1,
        experiment_id: nil
      )
    end
def get_variant(identifier)
      # pull in an experiment
      experiment = self.get_experiment(identifier)

      if self.run_experiment?(experiment)
        # select variant for the experiment
        variant = self.select_variant(experiment)
        # return if it it's present
        return variant if variant.present?
      end
      # return blank value if we don't have an experiment or don't get
      # a valid value
      return Ostruct.new(
        name: "default",
        index: -1,
        experiment_id: nil
      )
    end
get a variant for an experiment

 @param identifier [String, Hash] Either the experiment name
 as a String or a hash of what to look for

 @return [Gxapi::Ostruct]