Sha256: ad91a322ecc29a18482c989f17431b231b8d37d68bd9346d46de8b3fe6210dd9
Contents?: true
Size: 459 Bytes
Versions: 113
Compression:
Stored size: 459 Bytes
Contents
module ForestLiana module Utils class BetaSchemaUtils def self.find_action_from_endpoint(collection_name, endpoint, http_method) collection = ForestLiana.apimap.find { |collection| collection.name.to_s == collection_name } return nil unless collection collection.actions.find { |action| (action.endpoint == endpoint || "/#{action.endpoint}" == endpoint) && action.http_method == http_method } end end end end
Version data entries
113 entries across 113 versions & 1 rubygems