Class: BentoSearch::Routes
- Inherits:
-
Object
- Object
- BentoSearch::Routes
- Includes:
- RouteSets
- Defined in:
- lib/bento_search/routes.rb
Defined Under Namespace
Modules: RouteSets
Instance Method Summary collapse
- #draw ⇒ Object
-
#initialize(router, options = {}) ⇒ Routes
constructor
A new instance of Routes.
Methods included from RouteSets
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, = {}) @router = router @options = {:scope => "/bento"}.merge() end |
Instance Method Details
#draw ⇒ Object
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 |