Class: Juvet::Mapper::MappedRepository
- Inherits:
-
Object
- Object
- Juvet::Mapper::MappedRepository
- Defined in:
- lib/juvet/mapper/mapped_repository.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
readonly
Returns the value of attribute adapter.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(klass, options = nil) ⇒ MappedRepository
constructor
A new instance of MappedRepository.
Constructor Details
#initialize(klass, options = nil) ⇒ MappedRepository
6 7 8 9 |
# File 'lib/juvet/mapper/mapped_repository.rb', line 6 def initialize(klass, =nil) @klass = klass @adapter = ( || {}).fetch(:adapter) { :null } end |
Instance Attribute Details
#adapter ⇒ Object (readonly)
Returns the value of attribute adapter.
4 5 6 |
# File 'lib/juvet/mapper/mapped_repository.rb', line 4 def adapter @adapter end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
4 5 6 |
# File 'lib/juvet/mapper/mapped_repository.rb', line 4 def klass @klass end |