Class: Ruleby::Core::Error
- Inherits:
-
Object
- Object
- Ruleby::Core::Error
- Defined in:
- lib/core/engine.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, level, details = {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(type, level, details = {}) ⇒ Error
Returns a new instance of Error.
193 194 195 196 197 |
# File 'lib/core/engine.rb', line 193 def initialize(type, level, details={}) @type = type @details = details @level = level end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
191 192 193 |
# File 'lib/core/engine.rb', line 191 def details @details end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
191 192 193 |
# File 'lib/core/engine.rb', line 191 def level @level end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
191 192 193 |
# File 'lib/core/engine.rb', line 191 def type @type end |