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.
Instance Method Summary collapse
-
#initialize(output:, formatted: nil, errors: [], output_dv: nil) ⇒ TransformResult
constructor
A new instance of TransformResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(output:, formatted: nil, errors: [], output_dv: nil) ⇒ TransformResult
Returns a new instance of TransformResult.
266 267 268 269 270 271 |
# File 'lib/odin/transform/transform_types.rb', line 266 def initialize(output:, formatted: nil, errors: [], output_dv: nil) @output = output @formatted = formatted @errors = errors @output_dv = output_dv end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
264 265 266 |
# File 'lib/odin/transform/transform_types.rb', line 264 def errors @errors end |
#formatted ⇒ Object (readonly)
Returns the value of attribute formatted.
264 265 266 |
# File 'lib/odin/transform/transform_types.rb', line 264 def formatted @formatted end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
264 265 266 |
# File 'lib/odin/transform/transform_types.rb', line 264 def output @output end |
#output_dv ⇒ Object (readonly)
Returns the value of attribute output_dv.
264 265 266 |
# File 'lib/odin/transform/transform_types.rb', line 264 def output_dv @output_dv end |
Instance Method Details
#success? ⇒ Boolean
273 274 275 |
# File 'lib/odin/transform/transform_types.rb', line 273 def success? errors.empty? end |