Sha256: a1cbab8f1feedf529637a47e35badeba48d80f01a3f9c3476b6629707023416d
Contents?: true
Size: 821 Bytes
Versions: 4
Compression:
Stored size: 821 Bytes
Contents
module Praxis module Docs module OpenApi class InfoObject attr_reader :info, :version def initialize(version: , api_definition_info: ) @version = version @info = api_definition_info raise "OpenApi docs require a 'Title' for your API." unless info.title end def dump data ={ title: info.title, description: info.description, termsOfService: info.termsOfService, contact: info.contact, license: info.license, version: version, :'x-name' => info.name, :'x-logo' => { url: info.logo_url, backgroundColor: "#FFFFFF", altText: info.title } } end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems