Sha256: 71169a9cc9b8eda4701f3b74e053b0a5adbadd3d862b732d7493c2625f71502b

Contents?: true

Size: 320 Bytes

Versions: 24

Compression:

Stored size: 320 Bytes

Contents

# An endpoint is used as source to fetch objects
class LHS::Endpoint
  
  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
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
lhs-1.2.0 lib/lhs/endpoint.rb
lhs-1.1.0 lib/lhs/endpoint.rb
lhs-1.0.0 lib/lhs/endpoint.rb
lhs-0.4.0 lib/lhs/endpoint.rb