Sha256: 98ba62e26436746ff2a3c8c14b3f34df29c711d5e683b0cf527c2a9814a3040d

Contents?: true

Size: 319 Bytes

Versions: 1

Compression:

Stored size: 319 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)
      WialonApi::Client.new(result.send(WialonApi.wialon_client_session_identifier), result)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wialon_api-0.0.8 lib/wialon_api/authorization.rb