Sha256: ad91a322ecc29a18482c989f17431b231b8d37d68bd9346d46de8b3fe6210dd9

Contents?: true

Size: 459 Bytes

Versions: 122

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

122 entries across 122 versions & 1 rubygems

Version Path
forest_liana-9.7.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.6.4 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.6.3 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.6.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.5.7 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.5.6 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.5.5 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.5.4 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.5.3 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.5.2 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.5.1 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.5.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.4.3 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.4.2 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.4.1 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.4.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.3.3 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.3.16 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.3.15 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.3.14 app/services/forest_liana/utils/beta_schema_utils.rb