Class: GrapeDocumenter::NamespaceDoc

Inherits:
Object
  • Object
show all
Defined in:
lib/grape_documenter/namespace_doc.rb

Overview

Namespace

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ NamespaceDoc

Returns a new instance of NamespaceDoc.



6
7
8
9
10
11
12
# File 'lib/grape_documenter/namespace_doc.rb', line 6

def initialize(options = {})
  @title = options[:title]
  @routes = options[:routes]
  @root_path = options[:root_path]
  @version = options[:version]
  @resources = options[:resources]
end

Instance Attribute Details

#resourcesObject (readonly)

Returns the value of attribute resources.



4
5
6
# File 'lib/grape_documenter/namespace_doc.rb', line 4

def resources
  @resources
end

#root_pathObject (readonly)

Returns the value of attribute root_path.



4
5
6
# File 'lib/grape_documenter/namespace_doc.rb', line 4

def root_path
  @root_path
end

#routesObject (readonly)

Returns the value of attribute routes.



4
5
6
# File 'lib/grape_documenter/namespace_doc.rb', line 4

def routes
  @routes
end

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'lib/grape_documenter/namespace_doc.rb', line 4

def title
  @title
end

#versionObject (readonly)

Returns the value of attribute version.



4
5
6
# File 'lib/grape_documenter/namespace_doc.rb', line 4

def version
  @version
end