Class: Odin::Transform::TransformResult
- Inherits:
-
Object
- Object
- Odin::Transform::TransformResult
- Defined in:
- lib/odin/transform/transform_types.rb
Overview
Transform result
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#formatted ⇒ Object
readonly
Returns the value of attribute formatted.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#output_dv ⇒ Object
readonly
Returns the value of attribute output_dv.
-
#warnings ⇒ Object
readonly
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(output:, formatted: nil, errors: [], warnings: [], output_dv: nil) ⇒ TransformResult
constructor
A new instance of TransformResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(output:, formatted: nil, errors: [], warnings: [], output_dv: nil) ⇒ TransformResult
Returns a new instance of TransformResult.
281 282 283 284 285 286 287 |
# File 'lib/odin/transform/transform_types.rb', line 281 def initialize(output:, formatted: nil, errors: [], warnings: [], output_dv: nil) @output = output @formatted = formatted @errors = errors @warnings = warnings @output_dv = output_dv end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
279 280 281 |
# File 'lib/odin/transform/transform_types.rb', line 279 def errors @errors end |
#formatted ⇒ Object (readonly)
Returns the value of attribute formatted.
279 280 281 |
# File 'lib/odin/transform/transform_types.rb', line 279 def formatted @formatted end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
279 280 281 |
# File 'lib/odin/transform/transform_types.rb', line 279 def output @output end |
#output_dv ⇒ Object (readonly)
Returns the value of attribute output_dv.
279 280 281 |
# File 'lib/odin/transform/transform_types.rb', line 279 def output_dv @output_dv end |
#warnings ⇒ Object (readonly)
Returns the value of attribute warnings.
279 280 281 |
# File 'lib/odin/transform/transform_types.rb', line 279 def warnings @warnings end |
Instance Method Details
#success? ⇒ Boolean
289 290 291 |
# File 'lib/odin/transform/transform_types.rb', line 289 def success? errors.empty? end |