Sha256: 14427ac79d7aacda5e903eb574fe7f533df38a04e7de053d4eba9affd11a2eb9
Contents?: true
Size: 605 Bytes
Versions: 3
Compression:
Stored size: 605 Bytes
Contents
module SugarCRM; class Base # Retrieve a list of SugarBeans by ID. This method will not # work with the report module. def get_entries(module_name, ids, options={}) login! unless logged_in? { :fields => '', :link_fields => [], }.merge! options json = <<-EOF { \"session\": \"#{@session}\"\, \"module_name\": \"#{module_name}\"\, \"ids\": \"#{ids.to_json}\"\, \"select_fields\": #{options[:fields].to_json}\, \"link_name_to_fields_array\": #{options[:link_fields].to_json}\, } EOF json.gsub!(/^\s{6}/,'') get(:get_entries, json) end end; end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sugarcrm-0.5.3 | lib/sugarcrm/get_entries.rb |
sugarcrm-0.5.2 | lib/sugarcrm/get_entries.rb |
sugarcrm-0.5.1 | lib/sugarcrm/get_entries.rb |