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, #klass, #operator, #operator?, #spp

Methods included from Logging

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

Constructor Details

#initialize(client_name = '', reason: nil, idx: 1) ⇒ NoMethodBinding

Returns a new instance of NoMethodBinding.



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

def initialize(client_name = '', reason: nil, idx: 1 )
  super(client_name, nil, idx: idx)

  @reason = reason || ''
end

Instance Attribute Details

#reasonObject

Returns the value of attribute reason.



131
132
133
# File 'lib/datashift/inbound_data/method_binding.rb', line 131

def reason
  @reason
end

Instance Method Details

#invalid?Boolean

Returns:

  • (Boolean)


139
140
141
# File 'lib/datashift/inbound_data/method_binding.rb', line 139

def invalid?
  !valid?
end

#ppObject



147
148
149
# File 'lib/datashift/inbound_data/method_binding.rb', line 147

def pp
  "No Binding Found : Row [#{index}] : Header [#{source}]"
end

#valid?Boolean

Returns:

  • (Boolean)


143
144
145
# File 'lib/datashift/inbound_data/method_binding.rb', line 143

def valid?
  false
end