Class: FlipFab::Persistence

Inherits:
Object
  • Object
show all
Defined in:
lib/flip_fab/persistence.rb

Direct Known Subclasses

CookiePersistence

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(feature_name, context) ⇒ Persistence

Returns a new instance of Persistence.



5
6
7
8
# File 'lib/flip_fab/persistence.rb', line 5

def initialize(feature_name, context)
  @feature_name = feature_name
  @context      = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



3
4
5
# File 'lib/flip_fab/persistence.rb', line 3

def context
  @context
end

#feature_nameObject (readonly)

Returns the value of attribute feature_name.



3
4
5
# File 'lib/flip_fab/persistence.rb', line 3

def feature_name
  @feature_name
end

Instance Method Details

#readObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/flip_fab/persistence.rb', line 10

def read
  raise NotImplementedError
end

#write(state) ⇒ Object

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/flip_fab/persistence.rb', line 14

def write(state)
  raise NotImplementedError
end