Class: Datacraft::Consumer

Inherits:
Object
  • Object
show all
Includes:
Definition
Defined in:
lib/datacraft/definition.rb

Overview

data consumer that consume data

Instance Method Summary collapse

Methods included from Definition

included, #initialize, #instance

Instance Method Details

#validateObject



83
84
85
86
# File 'lib/datacraft/definition.rb', line 83

def validate
  fail InvalidConsumer, 'Consumer needs to be a class.' unless @d[:klass]
  self.class.validate_methods @d[:klass]
end