Sha256: d31925417cf0fdcbb6fcda6113ac3cfeba5f2856eae27512cad008c91bc9e129
Contents?: true
Size: 374 Bytes
Versions: 1
Compression:
Stored size: 374 Bytes
Contents
module WialonApi module Authorization def authorize(user, password) response = WialonApi::Api.call('core/login', user: user, password: password) result = WialonApi::Result.process(response) if WialonApi.wialon_edition == :pro WialonApi::Client.new(result.ssid) else WialonApi::Client.new(result.eid) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wialon_api-0.0.5 | lib/wialon_api/authorization.rb |