Class: DataShift::NoMethodBinding
- Inherits:
-
MethodBinding
- Object
- MethodBinding
- DataShift::NoMethodBinding
- Defined in:
- lib/datashift/inbound_data/method_binding.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
Returns the value of attribute reason.
Attributes inherited from MethodBinding
#inbound_column, #model_method, #valid
Instance Method Summary collapse
-
#initialize(client_name = '', reason: nil, idx: 1) ⇒ NoMethodBinding
constructor
A new instance of NoMethodBinding.
- #invalid? ⇒ Boolean
- #pp ⇒ Object
- #valid? ⇒ Boolean
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
#reason ⇒ Object
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
139 140 141 |
# File 'lib/datashift/inbound_data/method_binding.rb', line 139 def invalid? !valid? end |
#pp ⇒ Object
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
143 144 145 |
# File 'lib/datashift/inbound_data/method_binding.rb', line 143 def valid? false end |