Class: WSDSL::Doc
- Inherits:
-
Object
- Object
- WSDSL::Doc
- Defined in:
- lib/response_exceptions.rb
Overview
ResponseException::Doc DSL class
Instance Attribute Summary collapse
-
#doc ⇒ String
readonly
The documentation for the exception.
-
#klass ⇒ Exception
readonly
The exception class.
Instance Method Summary collapse
-
#initialize(klass, doc = '') ⇒ Doc
constructor
A new instance of Doc.
Constructor Details
#initialize(klass, doc = '') ⇒ Doc
Returns a new instance of Doc.
37 38 39 40 |
# File 'lib/response_exceptions.rb', line 37 def initialize(klass, doc='') @klass = klass @doc = doc end |
Instance Attribute Details
#doc ⇒ String (readonly)
The documentation for the exception
35 36 37 |
# File 'lib/response_exceptions.rb', line 35 def doc @doc end |
#klass ⇒ Exception (readonly)
The exception class
29 30 31 |
# File 'lib/response_exceptions.rb', line 29 def klass @klass end |