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.



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, 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.



38
39
40
# File 'lib/brainstem/api_docs/atlas.rb', line 38

def controllers
  @controllers
end

#endpointsObject

Returns the value of attribute endpoints.



38
39
40
# File 'lib/brainstem/api_docs/atlas.rb', line 38

def endpoints
  @endpoints
end

#presentersObject

Returns the value of attribute presenters.



38
39
40
# File 'lib/brainstem/api_docs/atlas.rb', line 38

def presenters
  @presenters
end

#resolverObject

Returns the value of attribute resolver.



38
39
40
# File 'lib/brainstem/api_docs/atlas.rb', line 38

def resolver
  @resolver
end