Sha256: 877e2a03dcd9208a61ae13e3f5119931dd918367442876c25354be9ccbb5c960
Contents?: true
Size: 907 Bytes
Versions: 6
Compression:
Stored size: 907 Bytes
Contents
// // Section.cc // snowcrash // // Created by Zdenek Nemec on 5/14/14. // Copyright (c) 2014 Apiary Inc. All rights reserved. // #include "Section.h" using namespace snowcrash; std::string snowcrash::SectionName(const SectionType& section) { switch (section) { case ModelSectionType: case ModelBodySectionType: return "model"; case RequestSectionType: case RequestBodySectionType: return "request"; case ResponseSectionType: case ResponseBodySectionType: return "response"; case BodySectionType: case DanglingBodySectionType: return "message-body"; case SchemaSectionType: case DanglingSchemaSectionType: return "message-schema"; case HeadersSectionType: return "headers"; default: return "section"; } }
Version data entries
6 entries across 6 versions & 1 rubygems