lib/armchair.rb
# Returns the size of the Armchair (the number of documents stored).
Returns the size of the Armchair (the number of documents stored).
Returns the size of the Armchair ( the number of documents stored ) .
def size
    RestClient.get(@dburl + '/_all_docs?limit=0', :accept => :json) do |r|
      case r.code
      when 200
        JSON(r.body)['total_rows']
      else
        r.return!
      end
    end
  end
def size RestClient . get ( @dburl + '/_all_docs?limit=0' , :accept => :json ) do | r | case r . code when 200 JSON ( r . body ) [ 'total_rows' ] else r . return! end end end
Returns the size of the Armchair (the number of documents stored).
Returns the size of the Armchair ( the number of documents stored ) .