Class: Juvet::Mapper::MappedRepository

Inherits:
Object
  • Object
show all
Defined in:
lib/juvet/mapper/mapped_repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, options = nil) ⇒ MappedRepository



6
7
8
9
# File 'lib/juvet/mapper/mapped_repository.rb', line 6

def initialize(klass, options=nil)
  @klass = klass
  @adapter = (options || {}).fetch(:adapter) { :null }
end

Instance Attribute Details

#adapterObject (readonly)

Returns the value of attribute adapter.



4
5
6
# File 'lib/juvet/mapper/mapped_repository.rb', line 4

def adapter
  @adapter
end

#klassObject (readonly)

Returns the value of attribute klass.



4
5
6
# File 'lib/juvet/mapper/mapped_repository.rb', line 4

def klass
  @klass
end