Class: SimpleFeatureFlags::BaseStorage Abstract

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/simple_feature_flags/base_storage.rb

Overview

This class is abstract.

Abstract class for all storage adapters.

Direct Known Subclasses

RamStorage, RedisStorage

Instance Method Summary collapse

Instance Method Details

#activate(feature) ⇒ Object



165
# File 'lib/simple_feature_flags/base_storage.rb', line 165

def activate(feature); end

#activate_for(feature, *objects, object_id_method: CONFIG.default_id_method) ⇒ Object



220
# File 'lib/simple_feature_flags/base_storage.rb', line 220

def activate_for(feature, *objects, object_id_method: CONFIG.default_id_method); end

#activate_for!(feature, *objects, object_id_method: CONFIG.default_id_method) ⇒ Object



232
# File 'lib/simple_feature_flags/base_storage.rb', line 232

def activate_for!(feature, *objects, object_id_method: CONFIG.default_id_method); end

#activate_globally(feature) ⇒ Object



181
# File 'lib/simple_feature_flags/base_storage.rb', line 181

def activate_globally(feature); end

#activate_partially(feature) ⇒ Object



197
# File 'lib/simple_feature_flags/base_storage.rb', line 197

def activate_partially(feature); end

#active(feature) ⇒ Object



21
# File 'lib/simple_feature_flags/base_storage.rb', line 21

def active(feature); end

#active?(feature) ⇒ Boolean

Returns:

  • (Boolean)


25
# File 'lib/simple_feature_flags/base_storage.rb', line 25

def active?(feature); end

#active_for?(feature, object, object_id_method: :id) ⇒ Boolean

Returns:

  • (Boolean)


57
# File 'lib/simple_feature_flags/base_storage.rb', line 57

def active_for?(feature, object, object_id_method: :id); end

#active_globally?(feature) ⇒ Boolean

Returns:

  • (Boolean)


33
# File 'lib/simple_feature_flags/base_storage.rb', line 33

def active_globally?(feature); end

#active_objects(feature) ⇒ Object



270
# File 'lib/simple_feature_flags/base_storage.rb', line 270

def active_objects(feature); end

#active_partially?(feature) ⇒ Boolean

Returns:

  • (Boolean)


41
# File 'lib/simple_feature_flags/base_storage.rb', line 41

def active_partially?(feature); end

#add(feature, description = '', active = 'false') ⇒ Object



301
# File 'lib/simple_feature_flags/base_storage.rb', line 301

def add(feature, description = '', active = 'false'); end

#allObject



317
# File 'lib/simple_feature_flags/base_storage.rb', line 317

def all; end

#deactivate(feature) ⇒ Object



244
# File 'lib/simple_feature_flags/base_storage.rb', line 244

def deactivate(feature); end

#deactivate!(feature) ⇒ Object



238
# File 'lib/simple_feature_flags/base_storage.rb', line 238

def deactivate!(feature); end

#deactivate_for(feature, *objects, object_id_method: CONFIG.default_id_method) ⇒ Object



281
# File 'lib/simple_feature_flags/base_storage.rb', line 281

def deactivate_for(feature, *objects, object_id_method: CONFIG.default_id_method); end

#description(feature) ⇒ Object



77
# File 'lib/simple_feature_flags/base_storage.rb', line 77

def description(feature); end

#do_activate(feature, &block) ⇒ Object



177
# File 'lib/simple_feature_flags/base_storage.rb', line 177

def do_activate(feature, &block); end

#do_activate_globally(feature, &block) ⇒ Object



193
# File 'lib/simple_feature_flags/base_storage.rb', line 193

def do_activate_globally(feature, &block); end

#do_activate_partially(feature, &block) ⇒ Object



209
# File 'lib/simple_feature_flags/base_storage.rb', line 209

def do_activate_partially(feature, &block); end

#do_deactivate(feature, &block) ⇒ Object



256
# File 'lib/simple_feature_flags/base_storage.rb', line 256

def do_deactivate(feature, &block); end

#exists?(feature) ⇒ Boolean

Returns:

  • (Boolean)


73
# File 'lib/simple_feature_flags/base_storage.rb', line 73

def exists?(feature); end

#fileObject



14
# File 'lib/simple_feature_flags/base_storage.rb', line 14

def file; end

#get(feature) ⇒ Object



290
# File 'lib/simple_feature_flags/base_storage.rb', line 290

def get(feature); end

#inactive?(feature) ⇒ Boolean

Returns:

  • (Boolean)


29
# File 'lib/simple_feature_flags/base_storage.rb', line 29

def inactive?(feature); end

#inactive_for?(feature, object, object_id_method: :id) ⇒ Boolean

Returns:

  • (Boolean)


69
# File 'lib/simple_feature_flags/base_storage.rb', line 69

def inactive_for?(feature, object, object_id_method: :id); end

#inactive_globally?(feature) ⇒ Boolean

Returns:

  • (Boolean)


37
# File 'lib/simple_feature_flags/base_storage.rb', line 37

def inactive_globally?(feature); end

#inactive_partially?(feature) ⇒ Boolean

Returns:

  • (Boolean)


45
# File 'lib/simple_feature_flags/base_storage.rb', line 45

def inactive_partially?(feature); end

#mandatory_flagsObject



17
# File 'lib/simple_feature_flags/base_storage.rb', line 17

def mandatory_flags; end

#remove(feature) ⇒ Object



311
# File 'lib/simple_feature_flags/base_storage.rb', line 311

def remove(feature); end

#when_active(feature, &block) ⇒ Object



87
# File 'lib/simple_feature_flags/base_storage.rb', line 87

def when_active(feature, &block); end

#when_active_for(feature, object, object_id_method: CONFIG.default_id_method, &block) ⇒ Object



149
# File 'lib/simple_feature_flags/base_storage.rb', line 149

def when_active_for(feature, object, object_id_method: CONFIG.default_id_method, &block); end

#when_active_globally(feature, &block) ⇒ Object



107
# File 'lib/simple_feature_flags/base_storage.rb', line 107

def when_active_globally(feature, &block); end

#when_active_partially(feature, &block) ⇒ Object



127
# File 'lib/simple_feature_flags/base_storage.rb', line 127

def when_active_partially(feature, &block); end

#when_inactive(feature, &block) ⇒ Object



97
# File 'lib/simple_feature_flags/base_storage.rb', line 97

def when_inactive(feature, &block); end

#when_inactive_for(feature, object, object_id_method: CONFIG.default_id_method, &block) ⇒ Object



161
# File 'lib/simple_feature_flags/base_storage.rb', line 161

def when_inactive_for(feature, object, object_id_method: CONFIG.default_id_method, &block); end

#when_inactive_globally(feature, &block) ⇒ Object



117
# File 'lib/simple_feature_flags/base_storage.rb', line 117

def when_inactive_globally(feature, &block); end

#when_inactive_partially(feature, &block) ⇒ Object



137
# File 'lib/simple_feature_flags/base_storage.rb', line 137

def when_inactive_partially(feature, &block); end