Class: Wallaby::Mode

Inherits:
Object
  • Object
show all
Defined in:
lib/interfaces/wallaby/mode.rb

Overview

This is the abstract class that all ORM modes to have implemented.

Direct Known Subclasses

ActiveRecord

Class Method Summary collapse

Class Method Details

.model_decoratorWallaby::ModelDecorator

Returns model decorator for the mode.

Returns:

See Also:



7
8
9
# File 'lib/interfaces/wallaby/mode.rb', line 7

def model_decorator
  check_and_constantize __callee__
end

.model_finderWallaby::ModelFinder

Returns model finder for the mode.

Returns:

See Also:



13
14
15
# File 'lib/interfaces/wallaby/mode.rb', line 13

def model_finder
  check_and_constantize __callee__
end

.model_pagination_providerWallaby::ModelPaginationProvider

pagination provider for the mode



26
27
28
# File 'lib/interfaces/wallaby/mode.rb', line 26

def model_pagination_provider
  check_and_constantize __callee__
end

.model_service_providerWallaby::ModelServiceProvider

Returns service provider for the mode.

Returns:

See Also:



19
20
21
# File 'lib/interfaces/wallaby/mode.rb', line 19

def model_service_provider
  check_and_constantize __callee__
end