Class: Odin::Transform::TransformEngine::TransformWarning
- Inherits:
-
Object
- Object
- Odin::Transform::TransformEngine::TransformWarning
- Defined in:
- lib/odin/transform/transform_engine.rb
Overview
A warning carrying a stable transform error code. Collected alongside string warnings; consumers that inspect codes read ‘.code`.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#field ⇒ Object
Returns the value of attribute field.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#segment ⇒ Object
Returns the value of attribute segment.
Instance Method Summary collapse
-
#initialize(message, code:) ⇒ TransformWarning
constructor
A new instance of TransformWarning.
- #to_s ⇒ Object
Constructor Details
#initialize(message, code:) ⇒ TransformWarning
Returns a new instance of TransformWarning.
25 26 27 28 |
# File 'lib/odin/transform/transform_engine.rb', line 25 def initialize(, code:) @message = @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
22 23 24 |
# File 'lib/odin/transform/transform_engine.rb', line 22 def code @code end |
#field ⇒ Object
Returns the value of attribute field.
23 24 25 |
# File 'lib/odin/transform/transform_engine.rb', line 23 def field @field end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
22 23 24 |
# File 'lib/odin/transform/transform_engine.rb', line 22 def @message end |
#segment ⇒ Object
Returns the value of attribute segment.
23 24 25 |
# File 'lib/odin/transform/transform_engine.rb', line 23 def segment @segment end |
Instance Method Details
#to_s ⇒ Object
30 31 32 |
# File 'lib/odin/transform/transform_engine.rb', line 30 def to_s @message end |