lib/wialon_api/authorization.rb in wialon_api-0.0.5 vs lib/wialon_api/authorization.rb in wialon_api-0.0.6

- old
+ new

@@ -1,13 +1,9 @@ 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 + WialonApi::Client.new(result.send(WialonApi.wialon_client_session_identifier)) end end end