Class: ROM::RethinkDB::Relation
- Inherits:
-
ROM::Relation
- Object
- ROM::Relation
- ROM::RethinkDB::Relation
- Defined in:
- lib/rom/rethinkdb/relation.rb
Overview
Relation subclass of RethinkDB adapter
Instance Method Summary collapse
- #count ⇒ Object
- #filter(*args, &block) ⇒ Object
- #order_by(*args, &block) ⇒ Object
- #pluck(*args, &block) ⇒ Object
- #rql ⇒ Object
Instance Method Details
#count ⇒ Object
17 18 19 |
# File 'lib/rom/rethinkdb/relation.rb', line 17 def count dataset.count end |
#filter(*args, &block) ⇒ Object
21 22 23 |
# File 'lib/rom/rethinkdb/relation.rb', line 21 def filter(*args, &block) __new__(dataset.__send__(__method__, *args, &block)) end |
#order_by(*args, &block) ⇒ Object
29 30 31 |
# File 'lib/rom/rethinkdb/relation.rb', line 29 def order_by(*args, &block) __new__(dataset.__send__(__method__, *args, &block)) end |
#pluck(*args, &block) ⇒ Object
25 26 27 |
# File 'lib/rom/rethinkdb/relation.rb', line 25 def pluck(*args, &block) __new__(dataset.__send__(__method__, *args, &block)) end |
#rql ⇒ Object
13 14 15 |
# File 'lib/rom/rethinkdb/relation.rb', line 13 def rql dataset.rql end |