Sha256: a51bf1ffadc49f11fb696c0c60231e7a876a01e87633202354148ef187a4e87f

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

module OptimizelyServerSide

  class DatafileFetcher
    # Responsible for fetching the optimizely sdk config from
    # the API source. The API can be optimizely cdn itself or
    # any other source.

    class << self

      # Fetch the Config from the specified source.
      def fetch
        Net::HTTP.get(URI(OptimizelyServerSide.configuration.config_endpoint))
      end
      alias_method :datafile, :fetch

    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/datafile_fetcher.rb