Class: WebFunction::DocumentedError
- Inherits:
-
Object
- Object
- WebFunction::DocumentedError
- Defined in:
- lib/web_function/documented_error.rb
Instance Method Summary collapse
- #code ⇒ Object
- #docs ⇒ Object
-
#initialize(error) ⇒ DocumentedError
constructor
A new instance of DocumentedError.
Constructor Details
#initialize(error) ⇒ DocumentedError
Returns a new instance of DocumentedError.
3 4 5 |
# File 'lib/web_function/documented_error.rb', line 3 def initialize(error) @error = error end |
Instance Method Details
#code ⇒ Object
7 8 9 |
# File 'lib/web_function/documented_error.rb', line 7 def code @error["code"] end |
#docs ⇒ Object
11 12 13 |
# File 'lib/web_function/documented_error.rb', line 11 def docs @error["docs"] end |