Sha256: 000f2dd8c7b09a75c7346f4876e59def3389efbf817c537d7c4d5187a9e2fbe3

Contents?: true

Size: 406 Bytes

Versions: 3

Compression:

Stored size: 406 Bytes

Contents

module SugarCRM; class Connection
  # Retrieves the list of modules available to the current user logged into the system.  
  def get_available_modules
    login! unless logged_in?
    json = <<-EOF
      {
        \"session\": \"#{@session}\"
      }
    EOF
    
    json.gsub!(/^\s{6}/,'')
    get(:get_available_modules, json)["modules"]
  end
  
  alias :get_modules :get_available_modules
  
end; end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sugarcrm-0.6.2 lib/sugarcrm/api/get_available_modules.rb
sugarcrm-0.6.1 lib/sugarcrm/api/get_available_modules.rb
sugarcrm-0.6.0 lib/sugarcrm/api/get_available_modules.rb