Sha256: f028478a449072a4ddf86d677ae68db02afbdb180666b7a3c050111557568db8
Contents?: true
Size: 604 Bytes
Versions: 3
Compression:
Stored size: 604 Bytes
Contents
module SugarCRM; class Base 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}\, } EOF placeholder = <<-EOF \"select_fields\": [\"name\"] \"link_name_to_fields_array\": \"#{options[:link_fields]}\"\, EOF json.gsub!(/^\s{6}/,'') get(:get_entry, json) end end; end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sugarcrm-0.5.3 | lib/sugarcrm/get_entry.rb |
sugarcrm-0.5.2 | lib/sugarcrm/get_entry.rb |
sugarcrm-0.5.1 | lib/sugarcrm/get_entry.rb |