Sha256: 1474c37f3a17f63efdfb2a9a8e8f2ab46319ac891fd1c05728343931c24c8f23
Contents?: true
Size: 472 Bytes
Versions: 4
Compression:
Stored size: 472 Bytes
Contents
# frozen_string_literal: true module Flagsmith module OfflineHandlers # Provides the offline_handler to the Flagsmith::Client. class LocalFileHandler attr_reader :environment def initialize(environment_document_path) environment_file = File.open(environment_document_path) data = JSON.parse(environment_file.read, symbolize_names: true) @environment = Flagsmith::Engine::Environment.build(data) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems