Class: WSDSL::Doc

Inherits:
Object
  • Object
show all
Defined in:
lib/response_exceptions.rb

Overview

ResponseException::Doc DSL class

Since:

  • 0.0.3

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, doc = '') ⇒ Doc

Returns a new instance of Doc.

Since:

  • 0.0.3



37
38
39
40
# File 'lib/response_exceptions.rb', line 37

def initialize(klass, doc='')
  @klass = klass
  @doc = doc
end

Instance Attribute Details

#docString (readonly)

The documentation for the exception

Returns:

  • (String)

Since:

  • 0.0.3



35
36
37
# File 'lib/response_exceptions.rb', line 35

def doc
  @doc
end

#klassException (readonly)

The exception class

Returns:

  • (Exception)

Since:

  • 0.0.3



29
30
31
# File 'lib/response_exceptions.rb', line 29

def klass
  @klass
end