Class: Brainstem::ApiDocs::Atlas

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Concerns::Optional
Defined in:
lib/brainstem/api_docs/atlas.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  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 options

  parse_routes!
  extract_presenters!
  validate!
end

Instance Attribute Details

#controllersObject

Returns the value of attribute controllers.



36
37
38
# File 'lib/brainstem/api_docs/atlas.rb', line 36

def controllers
  @controllers
end

#endpointsObject

Returns the value of attribute endpoints.



36
37
38
# File 'lib/brainstem/api_docs/atlas.rb', line 36

def endpoints
  @endpoints
end

#presentersObject

Returns the value of attribute presenters.



36
37
38
# File 'lib/brainstem/api_docs/atlas.rb', line 36

def presenters
  @presenters
end

#resolverObject

Returns the value of attribute resolver.



36
37
38
# File 'lib/brainstem/api_docs/atlas.rb', line 36

def resolver
  @resolver
end