Sha256: 96231d2c9d85eab8b0e3ea4b99eb03e02bf36d9de1d8289e757d9d22fbd1da3c
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 Bytes
Contents
module SugarCRM; class Connection # Retrieves a single SugarBean based on the ID. def get_entry(module_name, id, opts={}) login! unless logged_in? options = { :fields => [], :link_fields => [], }.merge! opts json = <<-EOF { \"session\": \"#{@session}\"\, \"module_name\": \"#{module_name}\"\, \"id\": \"#{id}\"\, \"select_fields\": #{resolve_fields(module_name, options[:fields])}\, \"link_name_to_fields_array\": #{options[:link_fields]} } EOF json.gsub!(/^\s{6}/,'') SugarCRM::Response.handle(send!(:get_entry, json)) end end; end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sugarcrm-0.9.9 | lib/sugarcrm/connection/api/get_entry.rb |