28 29 30 31 32 33 34
# File 'lib/lhs/concerns/record/endpoints.rb', line 28 def for_url(url) return unless url _template, record = LHS::Record::Endpoints.all.detect do |template, _| LHC::Endpoint.match?(url, template) end record end