Sha256: fc927fd3e530e626e305afd3b613b15ea199302e06429390e850c96987aea0dc

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

module OptimizelyServerSide

  class OptimizelySdk

    # 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 self.project_instance(options = {})
      Cache.fetch('optimizely_sdk_config'.freeze) do
        puts "Getting the configg"
        Optimizely::Project.new(DatafileFetcher.datafile, options[:event_dispather])
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
optimizely_server_side-0.0.3 lib/optimizely_server_side/optimizely_sdk.rb