Class: ROM::Firebase::Relation
- Inherits:
-
HTTP::Relation
- Object
- HTTP::Relation
- ROM::Firebase::Relation
- Defined in:
- lib/rom/firebase/relation.rb
Instance Method Summary collapse
Instance Method Details
#by_pk(primary_key) ⇒ Object
14 15 16 |
# File 'lib/rom/firebase/relation.rb', line 14 def by_pk(primary_key) with_path(CGI.escape(primary_key)) end |
#limit(count, key: DEFAULT_ORDER_BY) ⇒ Object
10 11 12 |
# File 'lib/rom/firebase/relation.rb', line 10 def limit(count, key: DEFAULT_ORDER_BY) with_params(order_by(key).merge(limitToLast: count)) end |