Class: LHS::Endpoint
- Inherits:
-
Object
- Object
- LHS::Endpoint
- Defined in:
- lib/lhs/endpoint.rb
Overview
An endpoint is used as source to fetch objects
Class Method Summary collapse
Class Method Details
.for_url(url) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/lhs/endpoint.rb', line 4 def self.for_url(url) template, service = LHS::Service::Endpoints.all.detect do |template, _service| LHC::Endpoint.match?(url, template) end service.endpoints.detect { |endpoint| endpoint.url == template } if service end |