Class: RoutesApiSpecGenerator::TemplateContext
- Inherits:
-
Object
- Object
- RoutesApiSpecGenerator::TemplateContext
- Defined in:
- lib/routes_api_spec_generator/template_context.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
Instance Method Summary collapse
-
#initialize(endpoint) ⇒ TemplateContext
constructor
A new instance of TemplateContext.
Constructor Details
#initialize(endpoint) ⇒ TemplateContext
Returns a new instance of TemplateContext.
7 8 9 |
# File 'lib/routes_api_spec_generator/template_context.rb', line 7 def initialize(endpoint) @endpoint = endpoint end |
Instance Attribute Details
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
5 6 7 |
# File 'lib/routes_api_spec_generator/template_context.rb', line 5 def endpoint @endpoint end |