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