Class: WSDSL::ResponseExceptions

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

Overview

Since:

  • 0.0.3

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponseExceptions

Returns a new instance of ResponseExceptions.

Since:

  • 0.0.3



7
8
9
# File 'lib/response_exceptions.rb', line 7

def initialize
  @list = []
end

Instance Attribute Details

#listObject (readonly)

Since:

  • 0.0.3



5
6
7
# File 'lib/response_exceptions.rb', line 5

def list
  @list
end

Instance Method Details

#classesObject

Since:

  • 0.0.3



15
16
17
# File 'lib/response_exceptions.rb', line 15

def classes
  @list.collect(&:klass)
end

#document(klass, doc) ⇒ Object

Since:

  • 0.0.3



11
12
13
# File 'lib/response_exceptions.rb', line 11

def document(klass, doc)
  @list << Doc.new(klass, doc)
end