Sha256: 5a4e69c43214af654565dc8926487e9add18e26f488c5ab21446830fdf1a672a

Contents?: true

Size: 403 Bytes

Versions: 3

Compression:

Stored size: 403 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\": \"#{@session}\"\,
        \"module_name\": \"#{module_name}\"\,
        \"name_value_list\": #{name_value_list.to_json}
      }
    EOF
    json.gsub!(/^\s{6}/,'')
    get(:set_entry, json)
  end
end; end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sugarcrm-0.6.2 lib/sugarcrm/api/set_entry.rb
sugarcrm-0.6.1 lib/sugarcrm/api/set_entry.rb
sugarcrm-0.6.0 lib/sugarcrm/api/set_entry.rb