Class: StuffClassifier::InMemoryStorage
- Inherits:
-
Storage
- Object
- Storage
- StuffClassifier::InMemoryStorage
show all
- Defined in:
- lib/stuff-classifier/storage.rb
Instance Attribute Summary
Attributes inherited from Storage
#storage
Instance Method Summary
collapse
Methods inherited from Storage
#classifier_to_storage, #clear_storage, #storage_to_classifier
Constructor Details
Returns a new instance of InMemoryStorage.
40
41
42
|
# File 'lib/stuff-classifier/storage.rb', line 40
def initialize
super
end
|
Instance Method Details
#load_state(classifier) ⇒ Object
44
45
46
|
# File 'lib/stuff-classifier/storage.rb', line 44
def load_state(classifier)
storage_to_classifier(classifier)
end
|
#purge_state(classifier) ⇒ Object
52
53
54
|
# File 'lib/stuff-classifier/storage.rb', line 52
def purge_state(classifier)
clear_storage(classifier)
end
|
#save_state(classifier) ⇒ Object
48
49
50
|
# File 'lib/stuff-classifier/storage.rb', line 48
def save_state(classifier)
classifier_to_storage(classifier)
end
|