Method: LHS::Record::Endpoints::ClassMethods#for_url
- Defined in:
- lib/lhs/concerns/record/endpoints.rb
#for_url(url) ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/lhs/concerns/record/endpoints.rb', line 34 def for_url(url) return unless url _template, record = LHS::Record::Endpoints.all.detect do |template, _| LHC::Endpoint.match?(url, template) end record end |