class OasRails::Spec::Paths
def add_path(path)
def add_path(path) @path_items[path] = Builders::PathItemBuilder.new(@specification).from_path(path).build end
def initialize(specification)
def initialize(specification) @specification = specification @path_items = {} end
def to_spec
def to_spec paths_hash = {} @path_items.each do |path, path_object| paths_hash[path] = path_object.to_spec end paths_hash end