Class: FlipFab::Persistence
- Inherits:
-
Object
- Object
- FlipFab::Persistence
- Defined in:
- lib/flip_fab/persistence.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#feature_name ⇒ Object
readonly
Returns the value of attribute feature_name.
Instance Method Summary collapse
-
#initialize(feature_name, context) ⇒ Persistence
constructor
A new instance of Persistence.
- #read ⇒ Object
- #write(state) ⇒ Object
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
#context ⇒ Object (readonly)
Returns the value of attribute context.
3 4 5 |
# File 'lib/flip_fab/persistence.rb', line 3 def context @context end |
#feature_name ⇒ Object (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
#read ⇒ Object
10 11 12 |
# File 'lib/flip_fab/persistence.rb', line 10 def read raise NotImplementedError end |
#write(state) ⇒ Object
14 15 16 |
# File 'lib/flip_fab/persistence.rb', line 14 def write(state) raise NotImplementedError end |