Sha256: 52ed33ca87f81723956ba282c2e4cc035771d5f529a21f64045e2dcce3eab144
Contents?: true
Size: 561 Bytes
Versions: 1
Compression:
Stored size: 561 Bytes
Contents
module Apress module Documentation class SwaggerJsonBuilder def initialize(module_name) @module_name = module_name end def call classes = if @module_name Apress::Documentation::Swagger::Schema.swagger_classes.select do |klass| klass.document_slug.to_s == @module_name.to_s || !klass.resource end else Apress::Documentation::Swagger::Schema.swagger_classes end ::Swagger::Blocks.build_root_json(classes) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apress-documentation-0.4.0 | app/services/apress/documentation/swagger_json_builder.rb |