Sha256: 1474c37f3a17f63efdfb2a9a8e8f2ab46319ac891fd1c05728343931c24c8f23
Contents?: true
Size: 472 Bytes
Versions: 3
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
flagsmith-4.1.0 | lib/flagsmith/sdk/offline_handlers.rb |
flagsmith-4.0.1 | lib/flagsmith/sdk/offline_handlers.rb |
flagsmith-4.0.0 | lib/flagsmith/sdk/offline_handlers.rb |