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.
38 39 40 41 |
# File 'lib/odin/transform/transform_engine.rb', line 38 def initialize(, code:) @message = @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
35 36 37 |
# File 'lib/odin/transform/transform_engine.rb', line 35 def code @code end |
#field ⇒ Object
Returns the value of attribute field.
36 37 38 |
# File 'lib/odin/transform/transform_engine.rb', line 36 def field @field end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
35 36 37 |
# File 'lib/odin/transform/transform_engine.rb', line 35 def @message end |
#segment ⇒ Object
Returns the value of attribute segment.
36 37 38 |
# File 'lib/odin/transform/transform_engine.rb', line 36 def segment @segment end |
Instance Method Details
#to_s ⇒ Object
43 44 45 |
# File 'lib/odin/transform/transform_engine.rb', line 43 def to_s @message end |