Class: Brainstem::ApiDocs::Atlas
- Inherits:
-
Object
- Object
- Brainstem::ApiDocs::Atlas
- Extended by:
- Forwardable
- Includes:
- Concerns::Optional
- Defined in:
- lib/brainstem/api_docs/atlas.rb
Instance Attribute Summary collapse
-
#controllers ⇒ Object
Returns the value of attribute controllers.
-
#endpoints ⇒ Object
Returns the value of attribute endpoints.
-
#presenters ⇒ Object
Returns the value of attribute presenters.
-
#resolver ⇒ Object
Returns the value of attribute resolver.
Instance Method Summary collapse
-
#initialize(introspector, options = {}) ⇒ Atlas
constructor
A new instance of Atlas.
Constructor Details
#initialize(introspector, options = {}) ⇒ Atlas
Returns a new instance of Atlas.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/brainstem/api_docs/atlas.rb', line 20 def initialize(introspector, = {}) self.endpoints = EndpointCollection.new(self, ) self.controllers = ControllerCollection.new(self, ) self.presenters = ::Brainstem::ApiDocs::PresenterCollection.new(self, ) self.resolver = Resolver.new(self) self.controller_matches = [] self.introspector = introspector super parse_routes! extract_presenters! validate! end |
Instance Attribute Details
#controllers ⇒ Object
Returns the value of attribute controllers.
36 37 38 |
# File 'lib/brainstem/api_docs/atlas.rb', line 36 def controllers @controllers end |
#endpoints ⇒ Object
Returns the value of attribute endpoints.
36 37 38 |
# File 'lib/brainstem/api_docs/atlas.rb', line 36 def endpoints @endpoints end |
#presenters ⇒ Object
Returns the value of attribute presenters.
36 37 38 |
# File 'lib/brainstem/api_docs/atlas.rb', line 36 def presenters @presenters end |
#resolver ⇒ Object
Returns the value of attribute resolver.
36 37 38 |
# File 'lib/brainstem/api_docs/atlas.rb', line 36 def resolver @resolver end |