Sha256: af52e03934ff3d9d4de4ed73a4e34e26e04ebf40358eb2f7be0644f7fb34342a

Contents?: true

Size: 335 Bytes

Versions: 40

Compression:

Stored size: 335 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.detect do |template, _record|
      LHC::Endpoint.match?(url, template)
    end
    record&.endpoints&.detect { |endpoint| endpoint.url == template }
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
lhs-21.1.2.pre.keyfix.1 lib/lhs/endpoint.rb
lhs-21.1.2.pre.fix.pre.cant.pre.add.pre.new.pre.key.pre.during.pre.iteration.1 lib/lhs/endpoint.rb
lhs-21.1.1.pre.pre.fix.pre.cant.pre.add.pre.new.pre.key.pre.during.pre.iteration.1 lib/lhs/endpoint.rb
lhs-21.1.0 lib/lhs/endpoint.rb
lhs-21.0.0 lib/lhs/endpoint.rb
lhs-20.1.4 lib/lhs/endpoint.rb
lhs-20.1.3.pre.paginationfix.3 lib/lhs/endpoint.rb
lhs-20.1.3.pre.paginationfix.2 lib/lhs/endpoint.rb
lhs-20.1.3.pre.paginationfix.1 lib/lhs/endpoint.rb
lhs-20.1.2 lib/lhs/endpoint.rb
lhs-20.1.1 lib/lhs/endpoint.rb
lhs-20.0.0 lib/lhs/endpoint.rb
lhs-19.10.0 lib/lhs/endpoint.rb
lhs-19.9.0 lib/lhs/endpoint.rb
lhs-19.8.2 lib/lhs/endpoint.rb
lhs-19.8.1 lib/lhs/endpoint.rb
lhs-19.8.0 lib/lhs/endpoint.rb
lhs-19.7.0 lib/lhs/endpoint.rb
lhs-19.6.0 lib/lhs/endpoint.rb
lhs-19.5.0 lib/lhs/endpoint.rb