Module: QueryInterface::Client::Resource::ClassMethods
- Defined in:
- lib/query-interface-client/resource.rb
Instance Method Summary collapse
Instance Method Details
#first(*args) ⇒ Object
9 10 11 |
# File 'lib/query-interface-client/resource.rb', line 9 def first(*args) self.query.order('id').first end |
#last(*args) ⇒ Object
13 14 15 |
# File 'lib/query-interface-client/resource.rb', line 13 def last(*args) self.query.order('id').last end |
#query ⇒ Object
17 18 19 |
# File 'lib/query-interface-client/resource.rb', line 17 def query LazyQuery.new(self) end |