Method: ExistAPI#initialize
- Defined in:
- lib/eXistAPI.rb
#initialize(uri = nil, username = nil, password = nil) ⇒ ExistAPI
Create new instance of ExistAPI.
example ExistAPI.new(“localhost:8080/exist/xmlrpc”, “admin”, “password”)
-
Args :
-
uri-> uri of the db server -
username-> username -
password-> password to specified username
-
-
Returns :
-
new instance of ExistAPI
-
-
Raises :
-
ExistException-> Database login failed
-
31 32 33 34 35 36 37 |
# File 'lib/eXistAPI.rb', line 31 def initialize(uri = nil , username = nil, password = nil) @uri = uri @username = username @password = password @parameters = { "encoding" => "UTF-8", "indent" => "yes"} connect end |