Method: UnifiProtect::API#initialize
- Defined in:
- lib/unifi_protect/api.rb
#initialize(host: nil, port: 7443, username: nil, password: nil, download_path: nil) ⇒ API
Returns a new instance of API.
13 14 15 16 17 18 19 |
# File 'lib/unifi_protect/api.rb', line 13 def initialize(host: nil, port: 7443, username: nil, password: nil, download_path: nil) @host = host @port = port @username = username @password = password @download_path = download_path end |