Method: Filezor::Client#initialize

Defined in:
lib/filezor/client.rb

#initialize(host, port, password, options = {}) ⇒ Client

Returns a new instance of Client.



22
23
24
25
26
# File 'lib/filezor/client.rb', line 22

def initialize(host, port, password, options = {})
  @root = "http://admin:#{password}@#{host}:#{port}"
  @options ||= stringify_keys(options)
  @options.update JSON.parse(post("info", options.to_json, "/"))
end