Class: RoutesApiSpecGenerator::TemplateContext

Inherits:
Object
  • Object
show all
Defined in:
lib/routes_api_spec_generator/template_context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#endpointObject (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