Class: Datacraft::Source

Inherits:
Object
  • Object
show all
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

#validateObject



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