Class: ROM::RethinkDB::Relation

Inherits:
ROM::Relation
  • Object
show all
Defined in:
lib/rom/rethinkdb/relation.rb

Overview

Relation subclass of RethinkDB adapter

Examples:

class Users < ROM::Relation[:rethinkdb]
end

Instance Method Summary collapse

Instance Method Details

#countObject



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

#rqlObject



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

def rql
  dataset.rql
end