Sha256: 26469271da4a3269ce93353c6dc1a037a480da3fb7a02afc28821097b844d8a4
Contents?: true
Size: 444 Bytes
Versions: 1
Compression:
Stored size: 444 Bytes
Contents
module Safelylaunch class MockConnection attr_reader :api_token, :logger, :host, :connection def initialize(api_token:, toggles: {}, logger: Logger.new(STDOUT), host: 'http://localhost:2300') @api_token = api_token @logger = logger @host = host @connection = nil @toggles = toggles end def get(key) result = @toggles.fetch(key, false) { key: key, enable: result } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
safelylaunch-0.1.0 | lib/safelylaunch/mock_connection.rb |