Sha256: 022280fada30df11f9069baaccb5ef4d0aea4a9c2bf6064c20267db88e07f792

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

module BOSDK
  class EnterpriseSession
    attr_reader :boe

    def initialize(cms, username, password)
      @boe = CrystalEnterprise.getSessionMgr.logon(username, password, cms, 'secEnterprise')
      @connected = true

      at_exit { disconnect }
    end

    def connected?
      return @connected
    end

    def disconnect
      @boe.logoff if connected?
      @boe = nil
      @connected = false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bosdk-0.1.0-universal-java-1.6 lib/bosdk/enterprise_session.rb