Sha256: d9fab0979202b6e82deefc026d21238b432cd8cae0dcaf4f43cbb0d3e53832e8

Contents?: true

Size: 345 Bytes

Versions: 2

Compression:

Stored size: 345 Bytes

Contents

# encoding: UTF-8

require_relative 'connection'
require_relative 'threaded'

module GoodData
  class << self
    # Attempts to log in
    def test_login
      connection.connect!
      connection.logged_in?
    end

    # Returns the currently logged in user Profile.
    def profile
      threaded[:profile] ||= Profile.load
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gooddata-0.6.3 lib/gooddata/core/user.rb
gooddata-0.6.2 lib/gooddata/core/user.rb