class OpenAPIParser::Schemas::PathItem

Public Instance Methods

operation(method) click to toggle source

@return [Operation]

# File lib/openapi_parser/schemas/path_item.rb, line 12
def operation(method)
  public_send(method)
rescue NoMethodError
  nil
end
set_path_item_to_operation() click to toggle source
# File lib/openapi_parser/schemas/path_item.rb, line 18
def set_path_item_to_operation
  [:get, :put, :post, :delete, :options, :head, :patch, :trace].each{ |method| operation(method)&.set_parent_path_item(self)}
end