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.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/brainstem/api_docs/atlas.rb', line 21 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.
38 39 40 |
# File 'lib/brainstem/api_docs/atlas.rb', line 38 def controllers @controllers end |
#endpoints ⇒ Object
Returns the value of attribute endpoints.
38 39 40 |
# File 'lib/brainstem/api_docs/atlas.rb', line 38 def endpoints @endpoints end |
#presenters ⇒ Object
Returns the value of attribute presenters.
38 39 40 |
# File 'lib/brainstem/api_docs/atlas.rb', line 38 def presenters @presenters end |
#resolver ⇒ Object
Returns the value of attribute resolver.
38 39 40 |
# File 'lib/brainstem/api_docs/atlas.rb', line 38 def resolver @resolver end |