Sha256: a06feb17967be9d3fc04f23ee3365332a21cb58852248dc0f62b2c5ccd02575d

Contents?: true

Size: 420 Bytes

Versions: 33

Compression:

Stored size: 420 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.http_method == http_method }
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
forest_liana-7.0.0.beta.2 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.5.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.4.1 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-7.0.0.beta.1 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.4.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.3.8 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.3.7 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.3.6 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.3.5 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.3.4 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.3.3 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.3.2 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.3.1 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.3.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.2.3 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.2.2 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.2.1 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.2.0 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.1.1 app/services/forest_liana/utils/beta_schema_utils.rb
forest_liana-6.1.0 app/services/forest_liana/utils/beta_schema_utils.rb