Class: Datacraft::Source
- Inherits:
-
Object
- Object
- Datacraft::Source
- Includes:
- Definition
- Defined in:
- lib/datacraft/definition.rb
Overview
data source that provide data
Instance Method Summary collapse
Methods included from Definition
included, #initialize, #instance
Instance Method Details
#validate ⇒ Object
71 72 73 74 |
# File 'lib/datacraft/definition.rb', line 71 def validate fail InvalidSource, 'Source needs to be a class.' unless @d[:klass] self.class.validate_methods @d[:klass] end |