Sha256: 692b8f27c240e3e8aefdd7f16abe652572feea569a858320e749ce093a137617

Contents?: true

Size: 456 Bytes

Versions: 15

Compression:

Stored size: 456 Bytes

Contents

module SugarCRM; class Connection

# Retrieves the vardef information on fields of the specified bean.  
def get_module_fields(module_name)
  login! unless logged_in?  
  json = <<-"EOF"
    {
      \"session\": \"#{@session}\"\,
      \"module_name": \"#{module_name}"
    }
  EOF
  json.gsub!(/^\s{6}/,'')
  SugarCRM::Response.handle(send!(:get_module_fields, json))
  #send!(:get_module_fields, json)
end

alias :get_fields :get_module_fields

end; end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sugarcrm-0.9.7 lib/sugarcrm/connection/api/get_module_fields.rb
sugarcrm-0.9.6 lib/sugarcrm/connection/api/get_module_fields.rb
sugarcrm-0.9.5 lib/sugarcrm/connection/api/get_module_fields.rb
sugarcrm-0.9.4 lib/sugarcrm/connection/api/get_module_fields.rb
sugarcrm-0.9.3 lib/sugarcrm/connection/api/get_module_fields.rb
sugarcrm-0.9.2 lib/sugarcrm/connection/api/get_module_fields.rb
sugarcrm-0.9.1 lib/sugarcrm/connection/api/get_module_fields.rb
sugarcrm-0.9.0 lib/sugarcrm/connection/api/get_module_fields.rb
sugarcrm-0.8.2 lib/sugarcrm/connection/api/get_module_fields.rb
sugarcrm-0.8.1 lib/sugarcrm/connection/api/get_module_fields.rb
sugarcrm-0.8.0 lib/sugarcrm/connection/api/get_module_fields.rb
sugarcrm-0.7.9 lib/sugarcrm/connection/api/get_module_fields.rb
sugarcrm-0.7.8 lib/sugarcrm/connection/api/get_module_fields.rb
sugarcrm-0.7.7 lib/sugarcrm/connection/api/get_module_fields.rb
sugarcrm-0.7.2 lib/sugarcrm/connection/api/get_module_fields.rb