Class: DataShift::NoMethodBinding

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

Instance Attribute Summary collapse

Attributes inherited from MethodBinding

#inbound_column, #model_method, #valid

Instance Method Summary collapse

Methods inherited from MethodBinding

#add_column_data, #add_lookup, #class_name, #inbound_index, #inbound_name, #klass, #operator, #operator?, #spp

Methods included from Logging

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

Constructor Details

#initialize(client_name = '', client_idx = -1,, options = {}) ⇒ NoMethodBinding

Returns a new instance of NoMethodBinding.



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

def initialize(client_name = '', client_idx = -1, options = {})
  super(client_name, client_idx, nil)

  @reason = options[:reason] || ''
end

Instance Attribute Details

#reasonObject

Returns the value of attribute reason.



117
118
119
# File 'lib/datashift/inbound_data/method_binding.rb', line 117

def reason
  @reason
end

Instance Method Details

#invalid?Boolean

Returns:

  • (Boolean)


125
126
127
# File 'lib/datashift/inbound_data/method_binding.rb', line 125

def invalid?
  !valid?
end

#ppObject



133
134
135
# File 'lib/datashift/inbound_data/method_binding.rb', line 133

def pp
  "No Binding Found : Row [#{inbound_index}] : Header [#{inbound_name}]"
end

#valid?Boolean

Returns:

  • (Boolean)


129
130
131
# File 'lib/datashift/inbound_data/method_binding.rb', line 129

def valid?
  false
end