Class: FbErrorMachine::ErrorBase
- Inherits:
-
Object
- Object
- FbErrorMachine::ErrorBase
- Defined in:
- lib/fb_error_machine/error_base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(attrs) ⇒ ErrorBase
constructor
A new instance of ErrorBase.
Constructor Details
#initialize(attrs) ⇒ ErrorBase
Returns a new instance of ErrorBase.
4 5 6 7 8 |
# File 'lib/fb_error_machine/error_base.rb', line 4 def initialize(attrs) @error_code = attrs[:error_code] @description = attrs[:description] @instructions = attrs[:instructions] end |