Class: Hanami::Extensions::DB::SliceConfiguredRepo Private
- Inherits:
-
Module
- Object
- Module
- Hanami::Extensions::DB::SliceConfiguredRepo
- Defined in:
- lib/hanami/extensions/db/repo.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #slice ⇒ Object readonly private
Instance Method Summary collapse
- #extended(repo_class) ⇒ Object private
-
#initialize(slice) ⇒ SliceConfiguredRepo
constructor
private
A new instance of SliceConfiguredRepo.
- #inspect ⇒ Object private
Constructor Details
#initialize(slice) ⇒ SliceConfiguredRepo
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of SliceConfiguredRepo.
34 35 36 37 |
# File 'lib/hanami/extensions/db/repo.rb', line 34 def initialize(slice) super() @slice = slice end |
Instance Attribute Details
#slice ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
32 33 34 |
# File 'lib/hanami/extensions/db/repo.rb', line 32 def slice @slice end |
Instance Method Details
#extended(repo_class) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
39 40 41 42 43 |
# File 'lib/hanami/extensions/db/repo.rb', line 39 def extended(repo_class) define_inherited configure_repo(repo_class) define_new end |
#inspect ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
45 46 47 |
# File 'lib/hanami/extensions/db/repo.rb', line 45 def inspect "#<#{self.class.name}[#{slice.name}]>" end |