Module: Mementus::Relation::ClassMethods

Defined in:
lib/mementus/relation.rb

Instance Method Summary collapse

Instance Method Details

#allObject



9
10
11
# File 'lib/mementus/relation.rb', line 9

def all
  Query.new(self.collection, self.cache).objects
end

#order(constraints) ⇒ Object



13
14
15
# File 'lib/mementus/relation.rb', line 13

def order(constraints)
  Query.new(self.collection, self.cache).order(constraints)
end

#where(constraints) ⇒ Object



5
6
7
# File 'lib/mementus/relation.rb', line 5

def where(constraints)
  Query.new(self.collection, self.cache).where(constraints)
end