Sha256: 347edbbb75dccf5aa4e2aee3fd3ac597b77e5c56708c7f2ad3f7ce1940c97780

Contents?: true

Size: 266 Bytes

Versions: 2

Compression:

Stored size: 266 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.eid)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wialon_api-0.0.2 lib/wialon_api/authorization.rb
wialon_api-0.0.1 lib/wialon_api/authorization.rb