Method: Dynamoid::Document::ClassMethods#count

Defined in:
lib/dynamoid/document.rb

#countObject

Returns the number of items for this class.

Since:

  • 0.6.1



63
64
65
# File 'lib/dynamoid/document.rb', line 63

def count
  Dynamoid.adapter.count(table_name)
end