Module: Persisto
- Defined in:
- lib/persisto.rb,
lib/persisto/query.rb,
lib/persisto/store.rb,
lib/persisto/mapper.rb,
lib/persisto/version.rb,
lib/persisto/exceptions.rb,
lib/persisto/repository.rb,
lib/persisto/adaptors/pg.rb,
lib/persisto/adaptors/abstract_adaptor.rb
Defined Under Namespace
Modules: Mapper, Query, Repository, Store
Classes: AbstractAdaptor, EntityNotFound, PersistoError, Pg, QueryError, RepositoryError, StoreError
Constant Summary
collapse
- VERSION =
"0.1.3"
Class Method Summary
collapse
Class Method Details
.mapper ⇒ Object
8
9
10
11
12
13
14
|
# File 'lib/persisto.rb', line 8
def self.mapper
mod = Module.new
mod.define_singleton_method :included do |base|
base.send(:include, ::Persisto::Mapper)
end
mod
end
|
.query ⇒ Object
16
17
18
19
20
21
22
|
# File 'lib/persisto.rb', line 16
def self.query
mod = Module.new
mod.define_singleton_method :included do |base|
base.send(:include, ::Persisto::Query)
end
mod
end
|
.repository ⇒ Object
24
25
26
27
28
29
30
|
# File 'lib/persisto.rb', line 24
def self.repository
mod = Module.new
mod.define_singleton_method :included do |base|
base.send(:include, ::Persisto::Repository)
end
mod
end
|
.store ⇒ Object
32
33
34
35
36
37
38
|
# File 'lib/persisto.rb', line 32
def self.store
mod = Module.new
mod.define_singleton_method :included do |base|
base.send(:include, ::Persisto::Store)
end
mod
end
|