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