Module: DataWorks

Defined in:
lib/data_works/base.rb,
lib/data_works/works.rb,
lib/data_works/config.rb,
lib/data_works/grafter.rb,
lib/data_works/railtie.rb,
lib/data_works/version.rb,
lib/data_works/exceptions.rb,
lib/data_works/relationships.rb,
lib/data_works/visualization.rb,
lib/data_works/parent_creator.rb,
lib/data_works/necessary_parent.rb,
lib/data_works/stale_relationship_checker.rb

Overview

The purpose of this class is to encapsulate the idea that when configuring DataWorks, necessary_parents can include symbols or hashes, like so:

config.necessary_parents = {
  district:                      [ ],
  event:                         [:schedule, :school],
  scheduled_service:             [{:schedulable => :event}, :student],
  school:                        [:district]
  student:                       [:school]
}

Defined Under Namespace

Modules: Visualization Classes: Base, Config, DataWorksError, Grafter, ModelRelationshipsOutOfDateError, NecessaryParent, ParentCreator, Railtie, Relationships, StaleRelationshipChecker, Works

Constant Summary collapse

VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.configure {|Config| ... } ⇒ Object

Yields:



3
4
5
# File 'lib/data_works/config.rb', line 3

def self.configure
  yield(Config)
end