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