Module: Adalog::RepoConvenienceMethods

Defined in:
lib/adalog.rb

Instance Method Summary collapse

Instance Method Details

#allObject



39
40
41
# File 'lib/adalog.rb', line 39

def all
  configuration.repo.all
end

#clear!Object



44
45
46
# File 'lib/adalog.rb', line 44

def clear!
  configuration.repo.clear!
end

#fetch(**options) ⇒ Object



49
50
51
# File 'lib/adalog.rb', line 49

def fetch(**options)
  configuration.repo.fetch(**options)
end

#insert(entry = nil, **options) ⇒ Object



54
55
56
# File 'lib/adalog.rb', line 54

def insert(entry = nil, **options)
  configuration.repo.insert(entry, **options)
end

#repoObject



35
36
37
# File 'lib/adalog.rb', line 35

def repo
  configuration.repo
end