Class: Railbus::RouteSet
- Inherits:
-
Object
- Object
- Railbus::RouteSet
- Defined in:
- lib/railbus/route_set.rb
Defined Under Namespace
Classes: Route
Constant Summary collapse
- MAP_NAMES =
{ 'post' => 'create_', 'put' => 'update_', 'patch' => 'update_', 'delete' => 'delete_' }
Instance Attribute Summary collapse
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
Instance Method Summary collapse
-
#initialize(app, include, exclude) ⇒ RouteSet
constructor
A new instance of RouteSet.
Constructor Details
#initialize(app, include, exclude) ⇒ RouteSet
Returns a new instance of RouteSet.
19 20 21 |
# File 'lib/railbus/route_set.rb', line 19 def initialize(app, include, exclude) @paths = add_route_names(paths_for_app(app, include, exclude)) end |
Instance Attribute Details
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
17 18 19 |
# File 'lib/railbus/route_set.rb', line 17 def paths @paths end |