Sha256: 088e3d53fa6ca4b7f2214335ce3cfbe209ac38e48149de0092d44104683ffff8
Contents?: true
Size: 655 Bytes
Versions: 1
Compression:
Stored size: 655 Bytes
Contents
# frozen_string_literal: true module OptimizelyServerSide class OptimizelySdk class << self # Public method to be accessed in the application # This is the project instance and is giving # access to all the optimizely sdk methods. # Datafile def project_instance(options = {}) Optimizely::Project.new(cached_datafile, options[:event_dispatcher]) end def cached_datafile Cache.fetch('optimizely_sdk_config') do puts "*********** Getting the config ***********" DatafileFetcher.datafile.content end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
optimizely_server_side-0.0.4 | lib/optimizely_server_side/optimizely_sdk.rb |