Class: SwaggerYard::Info

Inherits:
Object
  • Object
show all
Defined in:
lib/swagger_yard/swagger.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject



3
4
5
6
7
8
9
# File 'lib/swagger_yard/swagger.rb', line 3

def to_h
  {
    "title"       => SwaggerYard.config.title,
    "description" => SwaggerYard.config.description,
    "version"     => SwaggerYard.config.api_version
  }
end