Sha256: 7dafe08384dd8d8be96bf1af0a35eb5c20901384129d846f6ea3d73af8eea20e
Contents?: true
Size: 662 Bytes
Versions: 11
Compression:
Stored size: 662 Bytes
Contents
module SugarCRM; class Connection # Retrieve a list of SugarBeans by ID. This method will not # work with the report module. def get_entries(module_name, ids, opts={}) login! unless logged_in? options = { :fields => [], :link_fields => [], }.merge! opts json = <<-EOF { \"session\": \"#{@session}\"\, \"module_name\": \"#{module_name}\"\, \"ids\": #{ids.to_json}\, \"select_fields\": #{resolve_fields(module_name, options[:fields])}\, \"link_name_to_fields_array\": #{options[:link_fields].to_json}\, } EOF json.gsub!(/^\s{6}/,'') SugarCRM::Response.handle(send!(:get_entries, json)) end end; end
Version data entries
11 entries across 11 versions & 1 rubygems