Class: Cellect::Server::Loader
- Inherits:
-
Object
- Object
- Cellect::Server::Loader
- Includes:
- Celluloid
- Defined in:
- lib/cellect/server/loader.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#workflow ⇒ Object
readonly
Returns the value of attribute workflow.
Instance Method Summary collapse
-
#initialize(workflow) ⇒ Loader
constructor
A new instance of Loader.
- #load_data ⇒ Object
- #reload_data(set) ⇒ Object
Constructor Details
#initialize(workflow) ⇒ Loader
Returns a new instance of Loader.
8 9 10 |
# File 'lib/cellect/server/loader.rb', line 8 def initialize(workflow) @workflow = workflow end |
Instance Attribute Details
#workflow ⇒ Object (readonly)
Returns the value of attribute workflow.
6 7 8 |
# File 'lib/cellect/server/loader.rb', line 6 def workflow @workflow end |
Instance Method Details
#load_data ⇒ Object
12 13 14 15 |
# File 'lib/cellect/server/loader.rb', line 12 def load_data run_load!(workflow.subjects) mark_workflow_as_loaded end |
#reload_data(set) ⇒ Object
17 18 19 20 21 |
# File 'lib/cellect/server/loader.rb', line 17 def reload_data(set) run_load!(set) workflow.subjects = set mark_workflow_as_loaded end |