Sha256: dc50eecafba92cfe772a052ef822149354e4a61810e10346a07a7dc671c6fd88

Contents?: true

Size: 294 Bytes

Versions: 8

Compression:

Stored size: 294 Bytes

Contents

# frozen_string_literal: true

require_relative "variable_parser"

class DefaultVariableParser < VariableParser
  attr_accessor :reader, :log

  def parse(context, experiment_name, variant_name, config)
    JSON.parse(config, symbolize_names: true)
  rescue JSON::ParserError
    nil
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
absmartly-sdk-1.1.2 lib/default_variable_parser.rb
absmartly-sdk-1.1.1 lib/default_variable_parser.rb
absmartly-sdk-1.1.0 lib/default_variable_parser.rb
absmartly-sdk-1.0.8 lib/default_variable_parser.rb
absmartly-sdk-1.0.7 lib/default_variable_parser.rb
absmartly-sdk-1.0.6 lib/default_variable_parser.rb
absmartly-sdk-1.0.5 lib/default_variable_parser.rb
absmartly-sdk-0.1.2 lib/default_variable_parser.rb