Sha256: ad91a322ecc29a18482c989f17431b231b8d37d68bd9346d46de8b3fe6210dd9

Contents?: true

Size: 459 Bytes

Versions: 114

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

114 entries across 114 versions & 1 rubygems

Version Path
forest_liana-7.2.1 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.2.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.1.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.0.2 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.0.1 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.0.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.0.0.beta.6 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.0.0.beta.5 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.0.0.beta.4 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.0.0.beta.3 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.6.2 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.6.1 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.6.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.5.1 app/services/forest_liana/utils/beta_schema_utils.rb