Module: Scorpio::OpenAPI::Tag
Instance Method Summary collapse
-
#operations ⇒ Enumerable<Scorpio::OpenAPI::Operation>
operations in the openapi document which have a tag with this tag's name.
Instance Method Details
#operations ⇒ Enumerable<Scorpio::OpenAPI::Operation>
operations in the openapi document which have a tag with this tag's name
6 7 8 9 10 11 12 |
# File 'lib/scorpio/openapi/tag.rb', line 6 def operations unless jsi_root_node.is_a?(OpenAPI::Document) raise("Tag#operations cannot be used on a Tag that is not inside an OpenAPI document") end jsi_root_node.operations.select { |op| op..respond_to?(:to_ary) && op..include?(name) } end |