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.6.8 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.6.7 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.6.6 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.6.5 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.6.4 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.6.3 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.6.2 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.6.1 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.6.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.5.1 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.5.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.4.5 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.4.4 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.4.3 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.4.2 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.4.1 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.4.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.3.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.6.3 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.2.2 app/services/forest_liana/utils/beta_schema_utils.rb