Sha256: 361ba03d74614ab62cc15bcbeaaa4429a63a489a315bf07fe682cb0c5855fb68

Contents?: true

Size: 339 Bytes

Versions: 36

Compression:

Stored size: 339 Bytes

Contents

# frozen_string_literal: true

# An endpoint is used as source to fetch objects
class LHS::Endpoint

  def self.for_url(url)
    template, record = LHS::Record::Endpoints.all.dup.detect do |template, _record|
      LHC::Endpoint.match?(url, template)
    end
    record&.endpoints&.detect { |endpoint| endpoint.url == template }
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
lhs-26.2.0 lib/lhs/endpoint.rb
lhs-26.1.0 lib/lhs/endpoint.rb
lhs-26.0.1 lib/lhs/endpoint.rb
lhs-26.0.0 lib/lhs/endpoint.rb
lhs-25.2.0 lib/lhs/endpoint.rb
lhs-25.1.0 lib/lhs/endpoint.rb
lhs-25.0.4 lib/lhs/endpoint.rb
lhs-25.0.3 lib/lhs/endpoint.rb
lhs-25.0.2 lib/lhs/endpoint.rb
lhs-25.0.1 lib/lhs/endpoint.rb
lhs-25.0.0 lib/lhs/endpoint.rb
lhs-24.1.2 lib/lhs/endpoint.rb
lhs-24.1.1 lib/lhs/endpoint.rb
lhs-24.1.0 lib/lhs/endpoint.rb
lhs-24.1.0.pre.2 lib/lhs/endpoint.rb
lhs-24.1.0.pre.1 lib/lhs/endpoint.rb
lhs-24.0.0 lib/lhs/endpoint.rb
lhs-23.0.2 lib/lhs/endpoint.rb
lhs-23.0.1 lib/lhs/endpoint.rb
lhs-23.0.0 lib/lhs/endpoint.rb