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-9.1.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.2.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.0.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-9.0.0.beta.1 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.1.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.0.17 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.8.2 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.0.16 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.0.15 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.0.14 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.0.13 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.0.12 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.0.11 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.0.10 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.0.9 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.0.8 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.0.7 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.0.6 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.0.5 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-8.0.4 app/services/forest_liana/utils/beta_schema_utils.rb