Class: ROM::Solr::Relation
- Inherits:
-
HTTP::Relation
- Object
- HTTP::Relation
- ROM::Solr::Relation
show all
- Defined in:
- lib/rom/solr/relation.rb
Instance Method Summary
collapse
Instance Method Details
#count ⇒ Object
25
26
27
|
# File 'lib/rom/solr/relation.rb', line 25
def count
to_enum.count
end
|
#log_params_list(log_params) ⇒ Object
Also known as:
log_params
18
19
20
21
22
|
# File 'lib/rom/solr/relation.rb', line 18
def log_params_list(log_params)
lplist = log_params.nil? ? nil : Array.wrap(log_params).join(',')
add_params(logParamsList: lplist)
end
|
#params ⇒ Object
33
34
35
|
# File 'lib/rom/solr/relation.rb', line 33
def params
dataset.params.dup
end
|
#response ⇒ Object
29
30
31
|
# File 'lib/rom/solr/relation.rb', line 29
def response
dataset.response
end
|
#wt(format) ⇒ Object
Also known as:
format
13
14
15
|
# File 'lib/rom/solr/relation.rb', line 13
def wt(format)
add_params(wt: Types::Coercible::String[format])
end
|