Sha256: 0d929a04d066e65d7fd73102697d7d86d40fa992f175ed1d6cd8420424e2c686

Contents?: true

Size: 473 Bytes

Versions: 3

Compression:

Stored size: 473 Bytes

Contents

module SugarCRM; class Connection
# Retrieves the specified number of records in a module.
def get_entries_count(module_name, query, options={})
  login! unless logged_in?
  {
    :deleted => 0, 
  }.merge! options

  json = <<-EOF
    {
      \"session\": \"#{@session}\"\,
      \"module_name\": \"#{module_name}\"\,
      \"query\": \"#{query}\"\,
      \"deleted\": #{options[:deleted]}
    }
  EOF
  json.gsub!(/^\s{6}/,'')
  get(:get_entries_count, json)
end
end; end

Version data entries

3 entries across 3 versions & 1 rubygems

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