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, = {}) @root = "http://admin:#{password}@#{host}:#{port}" ||= stringify_keys() .update JSON.parse(post("info", .to_json, "/")) end |