Class: Datamappify::Repository::QueryMethod::Count

Inherits:
Method
  • Object
show all
Defined in:
lib/datamappify/repository/query_method/count.rb

Instance Attribute Summary

Attributes inherited from Method

#data_mapper, #states

Instance Method Summary collapse

Methods inherited from Method

#attributes_walker, #dirty_aware?, #dispatch_criteria_to_default_source, #dispatch_criteria_to_providers, #initialize, #source_attributes_walker, #writer?

Constructor Details

This class inherits a constructor from Datamappify::Repository::QueryMethod::Method

Instance Method Details

#performInteger

Returns:

  • (Integer)


6
7
8
# File 'lib/datamappify/repository/query_method/count.rb', line 6

def perform
  dispatch_criteria_to_default_source(:Count)
end

#reader?Boolean

Returns:

  • (Boolean)

See Also:



11
12
13
# File 'lib/datamappify/repository/query_method/count.rb', line 11

def reader?
  true
end