Class: DataShift::InternalMethodBinding

Inherits:
MethodBinding show all
Defined in:
lib/datashift/inbound_data/method_binding.rb

Instance Attribute Summary

Attributes inherited from MethodBinding

#inbound_column, #model_method, #valid

Instance Method Summary collapse

Methods inherited from MethodBinding

#add_column_data, #add_lookup, #class_name, #invalid?, #klass, #operator, #operator?, #pp, #spp, #valid?

Methods included from Logging

#logdir, #logdir=, #logger, #verbose

Constructor Details

#initialize(model_method) ⇒ InternalMethodBinding

Store an internal custom Operator to be called on klass Enables data to be set on a klass when no header/inbound data present For example to set default data, or for custom processing of inbound data



114
115
116
117
# File 'lib/datashift/inbound_data/method_binding.rb', line 114

def initialize(model_method)
  @model_method = model_method
  @valid = true
end

Instance Method Details

#indexObject



119
120
121
# File 'lib/datashift/inbound_data/method_binding.rb', line 119

def index
  nil
end

#sourceObject



123
124
125
# File 'lib/datashift/inbound_data/method_binding.rb', line 123

def source
  :internal
end