module Praxis::Mapper::Resources::QueryMethods::ClassMethods

Includes some limited, but handy query methods so we can transparently use them from the resource layer, and get wrapped resources from it

Public Instance Methods

all(...) click to toggle source
# File lib/praxis/mapper/resources/query_methods.rb, line 16
def all(...)
  QueryProxy.new(klass: self).all(...)
end
first() click to toggle source
# File lib/praxis/mapper/resources/query_methods.rb, line 28
def first
  QueryProxy.new(klass: self).first
end
get(args) click to toggle source
# File lib/praxis/mapper/resources/query_methods.rb, line 20
def get(args)
  QueryProxy.new(klass: self).get(args)
end
get!(args) click to toggle source
# File lib/praxis/mapper/resources/query_methods.rb, line 24
def get!(args)
  QueryProxy.new(klass: self).get!(args)
end
including(args) click to toggle source
# File lib/praxis/mapper/resources/query_methods.rb, line 12
def including(args)
  QueryProxy.new(klass: self).including(args)
end
last() click to toggle source
# File lib/praxis/mapper/resources/query_methods.rb, line 32
def last
  QueryProxy.new(klass: self).last
end