Class: GrapeDocumenter::NamespaceDoc
- Inherits:
-
Object
- Object
- GrapeDocumenter::NamespaceDoc
- Defined in:
- lib/grape_documenter/namespace_doc.rb
Overview
Namespace
Instance Attribute Summary collapse
-
#resources ⇒ Object
readonly
Returns the value of attribute resources.
-
#root_path ⇒ Object
readonly
Returns the value of attribute root_path.
-
#routes ⇒ Object
readonly
Returns the value of attribute routes.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ NamespaceDoc
constructor
A new instance of NamespaceDoc.
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( = {}) @title = [:title] @routes = [:routes] @root_path = [:root_path] @version = [:version] @resources = [:resources] end |
Instance Attribute Details
#resources ⇒ Object (readonly)
Returns the value of attribute resources.
4 5 6 |
# File 'lib/grape_documenter/namespace_doc.rb', line 4 def resources @resources end |
#root_path ⇒ Object (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 |
#routes ⇒ Object (readonly)
Returns the value of attribute routes.
4 5 6 |
# File 'lib/grape_documenter/namespace_doc.rb', line 4 def routes @routes end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/grape_documenter/namespace_doc.rb', line 4 def title @title end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
4 5 6 |
# File 'lib/grape_documenter/namespace_doc.rb', line 4 def version @version end |