class RailsApiBenchmark::Views::IndexMarkdown

Attributes

config[R]
nb_routes[R]
routes[R]

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/rails_api_benchmark/views/index_markdown.rb, line 8
def initialize
  super
  @file_name = 'README'
  @routes = @config.routes
  @nb_routes = routes.count
end

Public Instance Methods

extension() click to toggle source

Maybe put this in a superclass like MarkdownView to DRY

# File lib/rails_api_benchmark/views/index_markdown.rb, line 16
def extension
  'md'
end