Sha256: 0815a893b4928945d6c40712c297a2d29f8ee84be1ea7ac527b6e617811497d6

Contents?: true

Size: 402 Bytes

Versions: 10

Compression:

Stored size: 402 Bytes

Contents

module SugarCRM; class Connection
  # Creates or updates a single SugarBean.
  def set_entry(module_name, name_value_list)
    login! unless logged_in?
    json = <<-EOF
      {
        "session": "#{@sugar_session_id}",
        "module_name": "#{module_name}",
        "name_value_list": #{name_value_list.to_json}
      }
    EOF
    json.gsub!(/^\s{6}/,'')
    send!(:set_entry, json)
  end
end; end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
sugarcrm_emp-0.10.5 lib/sugarcrm/connection/api/set_entry.rb
sugarcrm_emp-0.10.1 lib/sugarcrm/connection/api/set_entry.rb
sugarcrm_emp-0.10.0 lib/sugarcrm/connection/api/set_entry.rb
sugarcrm-0.9.18 lib/sugarcrm/connection/api/set_entry.rb
sugarcrm-0.9.17 ./lib/sugarcrm/connection/api/set_entry.rb
sugarcrm-0.9.16 ./lib/sugarcrm/connection/api/set_entry.rb
sugarcrm-0.9.15 ./lib/sugarcrm/connection/api/set_entry.rb
sugarcrm-0.9.14 ./lib/sugarcrm/connection/api/set_entry.rb
sugarcrm-0.9.13 ./lib/sugarcrm/connection/api/set_entry.rb
sugarcrm-0.9.12 ./lib/sugarcrm/connection/api/set_entry.rb