Module: Remi::DataSubject::DataTarget

Instance Method Summary collapse

Instance Method Details

#loadObject

Public: Loads data to the target. This is automatically called after all transforms have executed, but could also get called manually. The actual load operation is only executed if hasn’t already.

Returns true if the load operation was successful.



69
70
71
72
73
# File 'lib/remi/data_subject.rb', line 69

def load
  return true if @loaded || df.size == 0

  @loaded = load!
end

#load!Object

Public: Performs the load operation, regardless of whether it has already executed.

Returns true if the load operation was successful

Raises:

  • (NoMethodError)


79
80
81
82
83
# File 'lib/remi/data_subject.rb', line 79

def load!
  raise NoMethodError, "#{__method__} not defined for #{self.class.name}"

  false
end