Method: SugarCRM::Connection#get_module_fields

Defined in:
lib/sugarcrm/connection/api/get_module_fields.rb

#get_module_fields(module_name) ⇒ Object Also known as: get_fields

Retrieves the vardef information of the specified bean.



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/sugarcrm/connection/api/get_module_fields.rb', line 3

def get_module_fields(module_name)
  login! unless logged_in?  
  json = "    {\n      \"session\": \"\#{@sugar_session_id}\",\n      \"module_name\": \"\#{module_name}\"\n    }\n  EOF\n  json.gsub!(/^\\s{6}/,'')\n  SugarCRM::Response.handle(send!(:get_module_fields, json), @session)\nend\n"