class Kingfisher::Repo
Attributes
backend[R]
Public Class Methods
new(backend)
click to toggle source
# File lib/kingfisher/repo.rb, line 3 def initialize(backend) @backend = backend end
Public Instance Methods
all(model)
click to toggle source
# File lib/kingfisher/repo.rb, line 7 def all(model) backend.all(model) end
create(model, params)
click to toggle source
# File lib/kingfisher/repo.rb, line 15 def create(model, params) backend.create(model, params) end
find(model, id)
click to toggle source
# File lib/kingfisher/repo.rb, line 11 def find(model, id) backend.find(model, id) end
find_by(model, attributes)
click to toggle source
# File lib/kingfisher/repo.rb, line 19 def find_by(model, attributes) backend.find_by(model, attributes) end