Class: Giblish::FailedConversion
- Inherits:
-
ConversionInfo
- Object
- ConversionInfo
- Giblish::FailedConversion
- Defined in:
- lib/giblish/conversion_info.rb
Overview
Provide data and access methods available when a conversion has failed
Instance Attribute Summary collapse
-
#error_msg ⇒ Object
readonly
Returns the value of attribute error_msg.
Attributes inherited from ConversionInfo
#converted, #dst_node, #dst_top, #src_node, #src_rel_path
Instance Method Summary collapse
-
#initialize(src_node:, dst_node:, dst_top:, error_msg: nil) ⇒ FailedConversion
constructor
A new instance of FailedConversion.
Methods inherited from ConversionInfo
#docid, #src_basename, #title, #to_s
Constructor Details
#initialize(src_node:, dst_node:, dst_top:, error_msg: nil) ⇒ FailedConversion
Returns a new instance of FailedConversion.
114 115 116 117 118 |
# File 'lib/giblish/conversion_info.rb', line 114 def initialize(src_node:, dst_node:, dst_top:, error_msg: nil) super(converted: false, src_node: src_node, dst_node: dst_node, dst_top: dst_top) @error_msg = error_msg end |
Instance Attribute Details
#error_msg ⇒ Object (readonly)
Returns the value of attribute error_msg.
112 113 114 |
# File 'lib/giblish/conversion_info.rb', line 112 def error_msg @error_msg end |