Class: Brightcontent::RoutesParser
- Inherits:
-
Object
- Object
- Brightcontent::RoutesParser
- Defined in:
- lib/brightcontent/routes_parser.rb
Instance Method Summary collapse
-
#initialize(routes_hash = nil, engine_resources = Brightcontent.engine_resources) ⇒ RoutesParser
constructor
A new instance of RoutesParser.
- #resources ⇒ Object
Constructor Details
#initialize(routes_hash = nil, engine_resources = Brightcontent.engine_resources) ⇒ RoutesParser
Returns a new instance of RoutesParser.
5 6 7 8 |
# File 'lib/brightcontent/routes_parser.rb', line 5 def initialize(routes_hash = nil, engine_resources = Brightcontent.engine_resources) @routes_hash = routes_hash @engine_resources = engine_resources end |
Instance Method Details
#resources ⇒ Object
10 11 12 |
# File 'lib/brightcontent/routes_parser.rb', line 10 def resources Resources.new(resources_array) end |