Class: SmartCsvImport::StrategyFailure
- Inherits:
-
Struct
- Object
- Struct
- SmartCsvImport::StrategyFailure
- Defined in:
- lib/smart_csv_import/strategy_failure.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#strategy_name ⇒ Object
Returns the value of attribute strategy_name.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error
4 5 6 |
# File 'lib/smart_csv_import/strategy_failure.rb', line 4 def error @error end |
#strategy_name ⇒ Object
Returns the value of attribute strategy_name
4 5 6 |
# File 'lib/smart_csv_import/strategy_failure.rb', line 4 def strategy_name @strategy_name end |
Instance Method Details
#failure? ⇒ Boolean
9 10 11 |
# File 'lib/smart_csv_import/strategy_failure.rb', line 9 def failure? true end |
#reason ⇒ Object
5 6 7 |
# File 'lib/smart_csv_import/strategy_failure.rb', line 5 def reason "#{error.class}: #{error.}" end |