Method: Dynamoid::Document::ClassMethods#count

Defined in:
lib/dynamoid/document.rb

#countObject

Returns the number of items for this class.

Since:

  • 0.6.1



69
70
71
# File 'lib/dynamoid/document.rb', line 69

def count
  Dynamoid.adapter.count(table_name)
end