Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
sugarcrm / lib / sugarcrm / connection / api / get_module_fields.rb
Size: Mime:
module SugarCRM; class Connection
  # Retrieves the vardef information of the specified bean.  
  def get_module_fields(module_name)
    login! unless logged_in?  
    json = <<-EOF
      {
        "session": "#{@sugar_session_id}",
        "module_name": "#{module_name}"
      }
    EOF
    json.gsub!(/^\s{6}/,'')
    SugarCRM::Response.handle(send!(:get_module_fields, json), @session)
  end
  alias :get_fields :get_module_fields
end; end