Sha256: 672b1e315e390c9e621e5b7463515399301ad5ebed1b3cafee3684a1dd228fcf
Contents?: true
Size: 771 Bytes
Versions: 9
Compression:
Stored size: 771 Bytes
Contents
# frozen_string_literal: true require_relative 'base_object' require_relative 'path_item_object' module R2OAS module Schema module V3 class TagObject < BaseObject def initialize(tags_data) @tags_data = tags_data end def to_doc @tags_data.each_with_object([]) do |tag_name, result| result.push(create_doc(tag_name)) end end private def create_doc(tag_name) { 'name' => tag_name, 'description' => "#{tag_name} description", # External Docs Object 'externalDocs' => { 'description' => 'description', 'url' => 'url' } } end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems