lib/optimizely_server_side/datafile_fetcher.rb
# Fetch the Config from the specified source.
# Incase of any error or exception we goto the fallback data
Fetch the Config from the specified source.
Incase of any error or exception we goto the fallback data
Fetch the Config from the specified source . Incase of any error or exception we goto the fallback data
def fetch
        begin
          response = call_optimizely_cdn
          return fallback unless response.is_a?(Net::HTTPSuccess)
          new(content: response.body, success: true)
        rescue Exception => e
          fallback
        end
      end
def fetch begin response = call_optimizely_cdn return fallback unless response . is_a? ( Net :: HTTPSuccess ) new ( content : response . body , success : true ) rescue Exception => e fallback end end
Fetch the Config from the specified source.
Fetch the Config from the specified source .