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 = '', client_idx = -1,, options = {}) ⇒ NoMethodBinding
constructor
A new instance of NoMethodBinding.
- #invalid? ⇒ Boolean
- #pp ⇒ Object
- #valid? ⇒ Boolean
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, = {}) super(client_name, client_idx, nil) @reason = [:reason] || '' end |
Instance Attribute Details
#reason ⇒ Object
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
125 126 127 |
# File 'lib/datashift/inbound_data/method_binding.rb', line 125 def invalid? !valid? end |
#pp ⇒ Object
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
129 130 131 |
# File 'lib/datashift/inbound_data/method_binding.rb', line 129 def valid? false end |