Class: Cellect::Server::Loader

Inherits:
Object
  • Object
show all
Includes:
Celluloid
Defined in:
lib/cellect/server/loader.rb

Direct Known Subclasses

GroupedLoader

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#workflowObject (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_dataObject



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