Class: ROM::Solr::Relation
- Inherits:
-
HTTP::Relation
- Object
- HTTP::Relation
- ROM::Solr::Relation
show all
- Extended by:
- Schemaless
- Defined in:
- lib/rom/solr/relation.rb
Instance Method Summary
collapse
Methods included from Schemaless
extended, schemaless
Instance Method Details
#all ⇒ Object
19
20
21
|
# File 'lib/rom/solr/relation.rb', line 19
def all
self
end
|
#count ⇒ Object
15
16
17
|
# File 'lib/rom/solr/relation.rb', line 15
def count
to_enum.count
end
|
#fetch(key, default = nil) ⇒ Object
10
11
12
13
|
# File 'lib/rom/solr/relation.rb', line 10
def fetch(key, default = nil)
return self if key.nil?
dataset.response.fetch(key, default)
end
|