Class: Memoir::Error
- Inherits:
-
Object
- Object
- Memoir::Error
- Defined in:
- lib/memoir/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#details ⇒ Object
Returns the value of attribute details.
-
#message ⇒ Object
Returns the value of attribute message.
-
#trace ⇒ Object
Returns the value of attribute trace.
Instance Method Summary collapse
-
#initialize(error) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(error) ⇒ Error
Returns a new instance of Error.
4 5 6 7 8 9 |
# File 'lib/memoir/error.rb', line 4 def initialize(error) @code = error['code'] @message = error['message'] @details = error['details'] @trace = error['trace'] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
2 3 4 |
# File 'lib/memoir/error.rb', line 2 def code @code end |
#details ⇒ Object
Returns the value of attribute details.
2 3 4 |
# File 'lib/memoir/error.rb', line 2 def details @details end |
#message ⇒ Object
Returns the value of attribute message.
2 3 4 |
# File 'lib/memoir/error.rb', line 2 def @message end |
#trace ⇒ Object
Returns the value of attribute trace.
2 3 4 |
# File 'lib/memoir/error.rb', line 2 def trace @trace end |