class SwaggerYard::Paths
Attributes
path_items[R]
Public Class Methods
new(path_items)
click to toggle source
# File lib/swagger_yard/api_group.rb, line 8 def initialize(path_items) @path_items = path_items end
Public Instance Methods
merge(other)
click to toggle source
# File lib/swagger_yard/api_group.rb, line 16 def merge(other) merged_items = {} (paths + other.paths).uniq.each do |path| merged_items[path] = (path_items[path] || PathItem.new) + (other.path_items[path] || PathItem.new) end Paths.new(merged_items) end
paths()
click to toggle source
# File lib/swagger_yard/api_group.rb, line 12 def paths path_items.keys end