Method: ExistAPI#getcollection
- Defined in:
- lib/eXistAPI.rb
#getcollection(path) ⇒ Object
Returns Collection at specified path.
-
Args :
-
path-> Path of the collection in db.
-
-
Returns : -instance of class Collection.
-
Raises :
-
nothing
-
121 122 123 124 125 126 127 |
# File 'lib/eXistAPI.rb', line 121 def getcollection(path) path = check_slashes(path) col = Collection.new(@client, path) return col rescue => e raise e end |