Class: BentoSearch::Routes

Inherits:
Object
  • Object
show all
Includes:
RouteSets
Defined in:
lib/bento_search/routes.rb

Defined Under Namespace

Modules: RouteSets

Instance Method Summary collapse

Methods included from RouteSets

#search

Constructor Details

#initialize(router, options = {}) ⇒ Routes

Returns a new instance of Routes.



5
6
7
8
# File 'lib/bento_search/routes.rb', line 5

def initialize(router, options = {})
  @router = router
  @options = {:scope => "/bento"}.merge(options)
end

Instance Method Details

#drawObject



10
11
12
13
14
# File 'lib/bento_search/routes.rb', line 10

def draw
  route_sets.each do |r|
    self.send(r)
  end
end