Class: Ddr::Index::Connection
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Ddr::Index::Connection
- Defined in:
- lib/ddr/index/connection.rb
Instance Method Summary collapse
-
#initialize ⇒ Connection
constructor
A new instance of Connection.
- #page(*args) ⇒ Object
- #select(params, extra = {}) ⇒ Object
Constructor Details
#initialize ⇒ Connection
Returns a new instance of Connection.
6 7 8 |
# File 'lib/ddr/index/connection.rb', line 6 def initialize super RSolr.connect(ActiveFedora.solr_config) end |
Instance Method Details
#page(*args) ⇒ Object
14 15 16 |
# File 'lib/ddr/index/connection.rb', line 14 def page(*args) Response.new paginate(*args) end |
#select(params, extra = {}) ⇒ Object
10 11 12 |
# File 'lib/ddr/index/connection.rb', line 10 def select(params, extra={}) Response.new get("select", params: params.merge(extra)) end |